+ 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
    209

    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,341

    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
    209

    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)

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