+ Reply to Thread
Results 1 to 6 of 6

VBA to copy cell data from same worksheet in multiple workbooks within a folder.

  1. #1
    Registered User
    Join Date
    01-17-2007
    Location
    Leeds UK
    MS-Off Ver
    excel 2007
    Posts
    40

    VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    Hi All,
    What I need to do is copy the data from cells A2 & B2 in the worksheet “BOM” from all the workbooks within a given folder - Q:\AX SYSTEM\Excel to AX via Schedule\count BOMs\ & paste it into a list in the worksheet “Sheet1” of workbook “Count Cores”.
    Pasted data will start in cells A2 & B2 then continue down through A3 & B3, A4 & B4 etc until all workbooks from the folder have been copied & pasted.

    Other cells within “Sheet1” are populated & will run calculations based on this list but hopefully I can actually do that bit 😉

    Thanks in advance for any help offered.

    Lee

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    Please Login or Register  to view this content.
    The above code was used to extract the data from the columns in the array, on the row where the text "Gas Driver" appeared on the worksheet "WEEK" of every workbook in the folder "P:\My Documents\Transport Figures\Year". Data was displayed on sheet 1 of a workbook with the code in a module. All files were similarly called but you may need to just refer to every workbook in folder

    You should be able to adapt for your use by adjusting requirements, hop it gives some guidance
    Last edited by nigelog; 07-25-2017 at 10:29 AM.

  3. #3
    Registered User
    Join Date
    01-17-2007
    Location
    Leeds UK
    MS-Off Ver
    excel 2007
    Posts
    40

    Re: VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    Thanks for the quick response Nigelog.

    I'll have a go with that later in the day.

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    Please Login or Register  to view this content.
    Hopefully this will work straight away from your workbook "Count cores"...

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    tested....
    Please Login or Register  to view this content.
    Copy into This Workbook module and call from view macros after saving as .xlsm

  6. #6
    Registered User
    Join Date
    01-17-2007
    Location
    Leeds UK
    MS-Off Ver
    excel 2007
    Posts
    40

    Re: VBA to copy cell data from same worksheet in multiple workbooks within a folder.

    That's Great Nigelog. Works a treat with very minimal changes.

    Thank you so much.

    Lee

+ 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] Macro to copy data from multiple workbooks to one worksheet
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2016, 05:24 PM
  2. Replies: 4
    Last Post: 01-14-2016, 02:05 AM
  3. Copy Active Worksheet into Multiple Workbooks in Separate Folder
    By FinkKosek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2014, 04:37 PM
  4. Copy worksheet to multiple workbooks in a folder
    By MysticGenius in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2012, 07:10 AM
  5. copy & paste data from multiple workbooks to new workbook in a folder
    By Ignesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2012, 03:11 AM
  6. VBA Copy Active worksheet to all workbooks in folder
    By adainty in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2011, 12:24 PM
  7. Copy worksheet to all workbooks in specified folder
    By nosstech in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2009, 03:45 PM

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