+ Reply to Thread
Results 1 to 3 of 3

what does subscript out of range mean?

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    what does subscript out of range mean?

    Hello. I'm writing this code (I've just pasted the end of it) and it's all going well until the end. I just want to autofilter range A16 to O21 and have the filter be on A16. I'm getting an error saying subscript out of range. Why is this? Can you correct? Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: what does subscript out of range mean?

    You have a typo. The 0 is a zero and not the letter O

    Range("A16:021").Select

    Or better yet.
    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 07-22-2013 at 01:57 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: what does subscript out of range mean?

    You are missing a space
    Please Login or Register  to view this content.

+ 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. [SOLVED] Subscript out of Range...
    By dlsmith36 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-01-2013, 03:30 PM
  2. Subscript out of range error while populating array from range.
    By Aussiexile in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2010, 02:22 AM
  3. Subscript out of range error when trying to select a range
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2010, 07:57 PM
  4. 9: Subscript out of range
    By jenz21985 in forum Excel General
    Replies: 7
    Last Post: 05-05-2006, 10:36 AM
  5. Subscript out of range....
    By Edgar Thoemmes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2005, 11:06 PM

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