+ Reply to Thread
Results 1 to 4 of 4

Macro to copy and paste columns from one workbook to a new workbook

  1. #1
    Registered User
    Join Date
    04-01-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    14

    Macro to copy and paste columns from one workbook to a new workbook

    Hi,

    I am new to macros and I am not quite understanding them, I need to create a macro that will:
    1)Copy the first 5 columns from a workbook starting from Row A5 and down to the last row of data, from first worksheet in the workbook.
    2)Paste the copied columns into a Result workbook on first worksheet
    3)The pasted data in the Result Workbook needs to be 5 columns to right for each time I use the macro, its continuous data that runs
    across. For EX: the first 5 columns will be dumped into Columns A-E, and the next time I extract from another workbook the data is dumped into column F-J and so forth.
    4)Create button so that when I press it i can prompt user to enter the name of the workbook to select for extracting data from.

    any ideas?

    thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Macro to copy and paste columns from one workbook to a new workbook

    Hi WindCloud2,

    Why can't the data just be dumped into the results worksheet?

  3. #3
    Registered User
    Join Date
    04-01-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro to copy and paste columns from one workbook to a new workbook

    because I need to pull the 5 columns from over 20 workbooks and put them going across on the same worksheet in the Result Workbook.
    When im done I should have 100 columns going across.

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    104

    Re: Macro to copy and paste columns from one workbook to a new workbook

    Hello,

    Just want to say that i am looking also to do roughly the same thing as Windcloud2 except I would copy only 1 column but that should be easiliy modified in the macro. I personnaly would like to have the data just dump into the result worksheet without prompting the user to select the workbook to pull data from as I would be looking more at 100-200 workbooks so if someone could provide an answer/macro to that as well that would be great. Thanks!

+ 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