+ Reply to Thread
Results 1 to 4 of 4

VBA loop through sheets, copy cells to master sheet

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    New York, US
    MS-Off Ver
    2013
    Posts
    43

    VBA loop through sheets, copy cells to master sheet

    Hey gurus,

    VBA beginner here. Thanks for taking the time to read my post (if you read it). Below is what I am trying to achieve - example file is attached.
    • Loop through sheets in the same workbook (starting at sheet5 through to the last sheet in the workbook, the amount of sheets will vary)
    • Copy cell B1 AND the last cell in column S in each sheet of loop
    • Paste B1 from each sheet in the next blank cell of column U in sheet2 (the first paste needs to start after the last used cell column U, which is U947 in the example workbook but will vary)
    • Paste the last cell in column S from each sheet in the next blank cell in column V of sheet2 (the first paste needs to start after the last used cell column V, which is V947 workbook in the example but will vary)

    Is there VBA code which could do this? I appreciate any responses!
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,363

    Re: VBA loop through sheets, copy cells to master sheet

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-20-2015
    Location
    New York, US
    MS-Off Ver
    2013
    Posts
    43

    Re: VBA loop through sheets, copy cells to master sheet

    Wow, that's some compact and fast code - very nice. Works perfectly with a copy paste! Thanks!

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,363

    Re: VBA loop through sheets, copy cells to master sheet

    You're welcome

+ 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. Master sheet into template, copy template to sheets named after master column.
    By M4R1N3R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 12:24 PM
  2. Loop through workbooks and copy just the first sheet only to master workbook.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2014, 10:36 AM
  3. Insert and Copy to Multiple Sheets from a Master Sheet
    By mja05d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2013, 11:52 AM
  4. [SOLVED] Copy paste values from sheets into one master sheet
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2013, 10:52 AM
  5. Copy data from master sheet to other sheets if criteria is met.
    By teachaman in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-30-2012, 06:43 AM
  6. Loop sheets then copy cells to end sheet
    By Mayweed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2011, 10:32 PM
  7. Loop through workbooks copy sheet to master
    By Sirishgreen in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-15-2008, 09:30 AM

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