+ Reply to Thread
Results 1 to 3 of 3

run time error with macro

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    Excel 2007
    Posts
    8

    run time error with macro

    I have a spreadsheet that has a macro that will hide rows (based on cell E9 to E88). This shortens the printing of the spreadsheet from 3 pages down to 1 or 2 in many cases.

    However, I get a run time error '9', subscript out of range. I have tried just about everything to find the error. Almost ready to give up and start from scratch.

    any help very much appreciated to point me to where the error could be. thanks. file attached.
    Mel
    TEST V5.xls

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: run time error with macro

    Your sheet name is different than the one referenced in your code. Try changing one or the other to match.

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: run time error with macro

    thanks - I corrected the tab names and works like a charm.

+ 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