+ Reply to Thread
Results 1 to 2 of 2

Referencing other files

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    South Africa, Soweto
    MS-Off Ver
    2007
    Posts
    16

    Referencing other files

    Good Day

    I've recorded a macro (SolTest) which works perfectly when it formats file (ZAE000004875_110930), but runs error when i try to run it against other file (ZAE000066304_110930, etc). Am i missing something please assist. This is a simple copy, paste and formatt macro

    Thanx in advance,

    Ponjo
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Referencing other files

    Hi Ponjo

    It seems to work, once I got the file names right (Note - your code said CSV, but the files supplied are XLS), and had all the files open. Also, the data in the two files started in different rows.

    You don't need to keep swapping between the files. Set up variables to refer to the workbook and worksheet, and just refer to them:
    Please Login or Register  to view this content.
    Hope some of this helps.

    Cheers, Rob.

+ 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