+ Reply to Thread
Results 1 to 2 of 2

Wanting to run loop for multiple pages

  1. #1
    Registered User
    Join Date
    06-03-2015
    Location
    Ohio,USA
    MS-Off Ver
    2007
    Posts
    1

    Question Wanting to run loop for multiple pages

    Hi everyone,

    So I am very new to macros/VBA (as in started last week, new). I recorded a macro that I want to run on multiple pages. All the pages have the exact same layout and the names are the same, just with numeric changes (i.e. Data Template, Data Template (2)...). In order to do this, I am pretty sure I need a loop, but I don't know how to write a successful on. I would like if the code made each new page a name with the same pattern (i.e. Data Sheet, Data Sheet (2)...). I have included my very rough code (without a loop) in hopes that it offers detail I cannot give. I hope I explained this well. Thanks in advance for any help!

    CustomerMacro.txt

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Wanting to run loop for multiple pages

    This is one way to loop through each worksheet in a workbook. Is this what you were looking for?

    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. For loop - different pages
    By platesigns in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2014, 01:42 PM
  2. Loop through multiple files and call macros (but unable to loop)
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 12:04 PM
  3. Help getting multiple results from multiple criteria on multiple pages
    By ERaasio in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 07:29 PM
  4. [SOLVED] Wanting to do SUMIF across multiple columns
    By Vx22B012 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-30-2012, 11:50 AM
  5. Replies: 6
    Last Post: 04-21-2009, 07:00 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