+ Reply to Thread
Results 1 to 2 of 2

Newbie: VBA? Macro? Please Advise...

  1. #1
    Registered User
    Join Date
    10-24-2003
    Location
    Canada
    Posts
    1

    Newbie: VBA? Macro? Please Advise...

    I've been assigned the task of opening about 200 different s/s, with no two being the same. They'll all have different numbers of worksheets (some hidden, some not), different formats, number of columns and rows, and varying degrees of formulas - some much more complicated than others.

    Ideally, I'd like to be able to open each of them and press a button to have their entire contents copied to a new spreadsheet (different name) into a single column in "Formula" view (Tools/Options/View/Formula - I'm using Excel 2000). The column would have the cell reference number and it's contents such as: A1: Date, A2: 38863, A:3 38862, A4: Total, B1: Amount, B2: 25, B3: 20, B4: =Sum(B2:B3).

    I guess my question is (because re-reading the info I just entered it's become pretty obvious that VBA is the solution) how do I write the code, and then, how do I attach it as a button to my toolbar? I have NO previous VBA experience, and only limited exprerience recording and running Macros (everyone's got to start somewhere...).

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    If you use your experience of recording macros, you will probably be able to generate the code for transferring one of the 200+ spreadsheets to the new one (chose a complex one with several sheets). Adapting this, you could put it into a loop reading from a list of all the 200+ files which are opened and closed sequentially. The workbook on my download page can produce the list for you if the spreadsheets are in the same folder structure.
    Martin

+ 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