+ Reply to Thread
Results 1 to 7 of 7

Error - Method Range of object_worksheet failed

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Error - Method Range of object_worksheet failed

    Hi all,

    I have been looking around trying to find out what this error means and what I need to do to fix it. I copied some code over from an old project and have placed it into the worksheet of my current project. I was getting a hard fail with error 400. I did some searching and found some code for an error catcher to see what was going on. Now I end up with the above stated error. It seems to be looking for something, but I am not sure what. Can someone please set me straight?
    Please Login or Register  to view this content.
    Thank you for your help.
    Patrick

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error - Method Range of object_worksheet failed

    Is there a named range called 'CheckRange'?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Error - Method Range of object_worksheet failed

    Yes, it is a named range on my sheet1 (Form)

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error - Method Range of object_worksheet failed

    Try adding a worksheet reference for the range.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Error - Method Range of object_worksheet failed

    I added what you suggested and it continues to trip up. I am attaching my workbook if I could bother you to take another look. Perhaps you can glean something from seeing the whole picture. I wanted to error check for missing data in the checkrange list, then move on to the other macros. I had this working on my home computer over the weekend. However, when I sent it back to the machine at the office, it seems to be acting up.

    Thak you for your continued help,
    Patrick
    Attached Files Attached Files

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error - Method Range of object_worksheet failed

    There's a #REF! in the middle of the named range, that's what's causing the problem.

    Not sure whether to delete it or replace itwith something but if I do either the code stops erroring.

  7. #7
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Error - Method Range of object_worksheet failed

    Wow, glad you spotted that. Yes, somehow I lost my reference to B8 and didn't notice. Must have happened when I was messing around with the check boxes the next cell over.

    Thanks again,
    Patrick

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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