+ Reply to Thread
Results 1 to 3 of 3

File doesn't recognize itself anymore

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Unhappy File doesn't recognize itself anymore

    Hi, all.

    I have a macro that has been in use for several years now. I maintain it and update it, and can usually spot and fix bugs quite easily. Today would prove different.

    In the macro, the following code exists:
    Please Login or Register  to view this content.
    Just today it gives the Error '9': Subscript out of Range error. I had not worked on the file for several months, and it is used daily so it was working just fine. But now that line doesn't execute anymore.

    I've checked and rechecked the spelling of the filename, made sure that someone didn't save it with any accidental spaces in the name, checked spelling in the code as well, but now I am at a loss.

    I haven't a clue why it won't execute. Any help would be greatly appreciated, and any insight as to the nature of this problem, too.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: File doesn't recognize itself anymore

    Most often, selecting a sheet/workbook/range is unnecessary. What are you trying to do that you must select the sheet? (Normally you would select a range on a sheet, too..)

  3. #3
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Re: File doesn't recognize itself anymore

    I have to reference the workbook and worksheet in such a manner because there are multiple workbooks open at runtime, since it uses data from other workbooks.

+ 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