+ Reply to Thread
Results 1 to 3 of 3

Consolidate multiple workbook sheets to one file - subscript out of range error?????

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2007
    Posts
    95

    Consolidate multiple workbook sheets to one file - subscript out of range error?????

    Hi,

    I get sent a csv file containing one worksheet with a daily data dump every day. i place these files into a folder. Once every fortnight i want to run a macro that combines all of these files into one worksheet, with one header row. I have the following code that should work however i get a subscript out of range error? No idea why!!! any help would be appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Consolidate multiple workbook sheets to one file - subscript out of range error?????

    This is my guess.
    If you ONLY have one sheet.

    Please Login or Register  to view this content.
    Should be

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-18-2013
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: Consolidate multiple workbook sheets to one file - subscript out of range error?????

    Legend thanks! Just couldn't pick it!

+ 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] Error 09 - Subscript out of Range - For Workbooks.sheets Object
    By Marceltcm in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2013, 08:03 PM
  2. [SOLVED] Closing a Workbook from another workbook: Workbooks.close error: Subscript out of range
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-14-2013, 06:45 PM
  3. [SOLVED] Subscript out of range (error 9) When setting active workbook
    By DotWFM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 04:00 PM
  4. subscript out of range error for .csv file and vlookup
    By cultgag in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2006, 03:10 PM
  5. Run Time Error 9 (Subscript out of Range) for XLA file
    By ExcelMonkey in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 11:05 AM

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