+ Reply to Thread
Results 1 to 3 of 3

How do I repeat a macro for each page without having to copy the macro for every page

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Gold Coast Queensland
    MS-Off Ver
    Excel 2007
    Posts
    35

    How do I repeat a macro for each page without having to copy the macro for every page

    I have a spreadsheet that is 40 pages (can't attach) that spans across a 14day period with 1 sheet for each day
    The macro reads another sheet and fills in my daily sheet

    How do I write this so I can condense the actions rather than having to copy it for each day.

    This is what I have written for the 1st 2 days and it works ok but I would like to condense it
    GT MON WK1 is where the macro is reading from for 1st sheet
    GT TUE WK1 is the next day etc etc

    Any ideas?


    Please Login or Register  to view this content.
    Last edited by dmccue; 10-03-2014 at 06:05 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: How do I repeat a macro for each page without having to copy the macro for every page

    Tags added
    Last edited by Pepe Le Mokko; 10-08-2014 at 03:08 AM.

  3. #3
    Registered User
    Join Date
    12-30-2013
    Location
    Gold Coast Queensland
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: How do I repeat a macro for each page without having to copy the macro for every page

    Now updated

+ 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] VBA/Macro to detect a heading at the bottom of a page and create a page break
    By jdodz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 07:16 PM
  2. Macro to Repeat Rows at bottom of each Page
    By vamsidhar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 10:28 PM
  3. Hide Column & Print page Macro printing blank page?!
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2013, 03:59 PM
  4. Replies: 0
    Last Post: 05-13-2005, 07:06 PM
  5. [SOLVED] Macro for Page Setup - Repeat rows at top
    By epuk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2005, 12:06 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