+ Reply to Thread
Results 1 to 3 of 3

Get a macro to run on multiple worksheets

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    257

    Get a macro to run on multiple worksheets

    In my attached workbook I have a selection of years with certain results in them.
    For each worksheet, I run a macro that when it finishes, activates the next sheet and I run the
    macro again. That means I am pushing the run macro button 5 times in each workbook.
    How do I add to the code so that it runs the macro, finishes, goes to the next sheet and runs the macro again
    until it has been through all 5 work sheets, without my interference.
    I think you would use a Loop, but I wouldn't know where to begin.
    My VBA skills are very amateurish.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Get a macro to run on multiple worksheets

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    257

    Re: Get a macro to run on multiple worksheets

    I have tried to run the macro 3 times and Excel freezes and I have to restart.
    Why would this be happening?

+ 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. Same macro to run in multiple worksheets
    By jaredli in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-21-2017, 06:38 PM
  2. Required Macro for combine multiple workbooks which contains multiple worksheets
    By DHANASEKARAN in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2013, 03:20 PM
  3. Macro to sum the product of multiple cells across multiple worksheets
    By ciayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2013, 03:28 PM
  4. [SOLVED] Macro to combine multiple cells from multiple worksheets into one worksheet
    By sharpmarc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2013, 02:42 PM
  5. Excel 2010 multiple worksheets print to multiple pdf 's is there a macro for this?
    By fontana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 01:40 PM
  6. Macro to print multiple worksheets to multiple PDFs.
    By ryanwood17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-14-2010, 02:07 AM
  7. Macro to run for Multiple worksheets
    By sajeel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2009, 04:34 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