+ Reply to Thread
Results 1 to 2 of 2

Subscript out of range error when trying to select a range

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Subscript out of range error when trying to select a range

    When i execute the following code:

    Please Login or Register  to view this content.
    I get a runtime error 9, subscript out of range.

    Anyone have ideas as to why?

    I do know that prior to running the macro, if i select the correct sheet then i do not get the error. HOwever, if i select the wrong sheet i do get the error. Why?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Subscript out of range error when trying to select a range

    You can't select a range with that syntax (which is redundant) except on the active sheet. Instead,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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