+ Reply to Thread
Results 1 to 4 of 4

VBA to combine specific ranges in all worksheets

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    87

    VBA to combine specific ranges in all worksheets

    Hello:
    I am creating a workbook for a client as such:

    A user will duplicate a new order form (a new worksheet) via a macro, for each client order.
    The new order form will have a data table which collects the entered order info into a clean data table. This is created with the duplication.
    The user may be creating a number of orders per workbook, let's say 10 new worksheets.
    The new worksheets will be named with a naming convention (Page No 1, Page No 2, Page No 3, etc...)

    My question: How can I automate to have the data table in each worksheet append to each other, with the user having no knowledge of Power Query or Macros?
    In other words, as each new worksheet is created, how can Excel put each worksheet containing "Page Num" in it's name, into a combined appended table? I can specify a range for the data table in each worksheet, for example: Y6:AG20.

    I am open to using a combination of VBA and Power Query, if that's the best option.

    Thanks so much!!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA to combine specific ranges in all worksheets

    It would be much easier for us to help if we could see a sample workbook.
    Attach one and show us what ranges you want copying, where and under what circumstances.

    BSB

  3. #3
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    87

    Re: VBA to combine specific ranges in all worksheets

    Hi BSB: Thanks for the reply!
    Sample WB attached.
    In summary, looking for a Macro to:
    Combine data in Range: Y7:AG20, for each worksheet that contains "Page Num" in its name, into one large data table (Table1) in worksheet 'Combined Data'.Sample Cut List.zip
    Thanks in advance.

  4. #4
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    87

    Re: VBA to combine specific ranges in all worksheets

    I found one that works.
    Please Login or Register  to view this content.

+ 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] Combine Ranges from 2 Worksheets
    By PandoraGirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-04-2023, 01:25 PM
  2. [SOLVED] VBA to take a specific range from all worksheets in a workbook and combine them into one
    By amweisberg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 04:13 PM
  3. How to combine specific worksheets from different workbooks into one workbook?
    By thepulser89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 03:44 AM
  4. [SOLVED] Combining specific ranges from multiple worksheets into one
    By simora in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] Combining specific ranges from multiple worksheets into one
    By simora in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] Combining specific ranges from multiple worksheets into one
    By simora in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2005, 01:05 PM
  7. [SOLVED] Combining specific ranges from multiple worksheets into one
    By simora in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-30-2005, 08:05 PM

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