+ Reply to Thread
Results 1 to 6 of 6

Runtime Error 9 - Subscript out of range

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question Runtime Error 9 - Subscript out of range

    Hello friends,

    i am trying to consolidate data in Sheet7 of all the files in a folder to a single file. In case a file doesn't contain Sheet7, i want to get the name of the workbook. The code is working fine, but after it loops it is returning Runtime Error 9 - Subscript out of range. Please help. Thanks in advance.

    Here is my code
    Please Login or Register  to view this content.
    Last edited by Swalih; 02-12-2014 at 01:27 AM.

  2. #2
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Runtime Error 9 - Subscript out of range

    i m sorry. i am new to the forum. I have done the updations.

  3. #3
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Runtime Error 9 - Subscript out of range

    Try clearing the error see if it helps

    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  4. #4
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Runtime Error 9 - Subscript out of range

    Thank u for the support millz, but still it is not working. when i am testing the code using F8 it returns "Run-time error '-2147352565 (8002000b)' The Specified dimension is not valid for the current chart type." I am not using any charts & if i click Debug, and press F8 again the in returns the Run time error 9

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Runtime Error 9 - Subscript out of range

    Replace this

    Please Login or Register  to view this content.
    With

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Runtime Error 9 - Subscript out of range

    Wow that was superb. Thank u very much for ur help Sixthsense . Keep rocking.

+ 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. Runtime error 9: Subscript out of range
    By davidmurphy25 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-19-2013, 09:40 PM
  2. [SOLVED] Runtime error 9: subscript out of range..
    By daveyc18 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-19-2013, 03:02 PM
  3. Runtime error '9' Subscript out of range
    By mickinho in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2013, 03:00 AM
  4. [SOLVED] runtime error 9 - subscript out of range
    By Blake 7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2012, 12:20 PM
  5. Runtime error 9, Subscript out of Range
    By iboumiza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2011, 07:40 PM

Tags for this Thread

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