+ Reply to Thread
Results 1 to 4 of 4

2147417848 Method Default of Object Range Failed (Excel version 2016)

  1. #1
    Forum Contributor
    Join Date
    04-07-2015
    Location
    Halifax, NS
    MS-Off Ver
    365
    Posts
    100

    2147417848 Method Default of Object Range Failed (Excel version 2016)

    I have a userform to enter data (frmProducts) into the table on sheet 2. Everything was working fine and then all of a sudden, I started getting this error when clicking the cmdAdd button. Then when I close the form, MS Excel stops working and restarts.
    I only made one change since frmProducts last worked properly. I added a second userform (frmRecipes) to input data into a table on Recipes (sheet3). The second form (frmRecipes) has a dropdown box (cboProduct) based on column A in sheet 2 (Products). The code for the RowSource on cboProduct is:
    Please Login or Register  to view this content.
    .
    I don't understand why a change in coding on a different form would interfere with the function of the first form so that may be coincidental. I have searched everywhere and can't find a solution. Can anyone help?
    The code I am using to save data from the frmProducts to the table "Product" is as follows: (I have named all of the form controls as reg1, reg2, reg3, etc...for a total of 24 controls. Only 6 controls are visible to the user to enter data. All of the other controls are calculated controls based on the information entered.)

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: 2147417848 Method Default of Object Range Failed (Excel version 2016)

    Hi there,

    It's difficult to check this properly without access to your workbook and UserForms, but the following code contains an error:

    Please Login or Register  to view this content.
    The highlighted line treats the variable "nextrow" as if it were a string/numeric variable, but in fact it is declared as being of Type Range.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    04-07-2015
    Location
    Halifax, NS
    MS-Off Ver
    365
    Posts
    100

    Re: 2147417848 Method Default of Object Range Failed (Excel version 2016)

    Thank you for your response. Since my post, I decided that I needed to convert my data range to a formatted table since I will need to develop some relationships. Now I am entering a new and foreign world. I have my table(s) created with several calculated columns that are all functioning well. I want to use a userform to enter data into the table and I know that the code needs to be modified. I have been reading and trying different things but so far have been unable to get anything to work for me. Having said that, I have started a new thread with a more meaningful title, "Userform to Enter Data to Formatted Table."

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: 2147417848 Method Default of Object Range Failed (Excel version 2016)

    Hi again,

    Ok on that - thanks for your feedback.

    Regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run-time error -2147417848 (80010108) Method Value of object Range failed
    By Arito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2015, 02:10 PM
  2. help with method range of object failed
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2015, 02:44 PM
  3. Runtime Error 2147417848(80010108) Method Autofill of Object Range failed
    By seejohn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2014, 08:03 AM
  4. Method 'Range' of object '_Global' failed. error in excel-vba
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2013, 04:28 PM
  5. "Runtime error '-2147417848 (80010108)' Method 'find' of object 'Range' failed"
    By excelworker_1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-14-2012, 09:53 AM
  6. own version of the problem:method 'range' of object'_global' failed
    By jwest21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2008, 06:55 PM
  7. Replies: 7
    Last Post: 08-24-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1