+ Reply to Thread
Results 1 to 2 of 2

Need to copy all data and formatting from 50 worksheets into one.

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Smile Need to copy all data and formatting from 50 worksheets into one.

    Hi helpers,

    I have a workbook with 50 +- worksheets. Each worksheet has a similar format.. 24 Rows X approx 20 columns. I'm trying to copy each worksheet into a single worksheet vertically...is this possible with a macro. I have found some macros but I've spent a day working on this from other macros but can't get them to work....Also if possible each time the original worksheets (50) are updated, ( the data in the cells change but not the size of the worksheet) the single worksheet's data would also change... this second bit is not vital as I can just rerun the original macro but it would be nice to have the links.

    thansk for your help in advance,

    Mark

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need to copy all data and formatting from 50 worksheets into one.

    Instead of links, a better approach is to run the macro again after changes are done to the individual files.

    Try this code -
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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