+ Reply to Thread
Results 1 to 5 of 5

Appying a Macro to all sheets in a workbook at the same time.

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Appying a Macro to all sheets in a workbook at the same time.

    I have a workbook with Sheets numbered T1 through T200, I'm using the following macro.
    Option Explicit

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Is there a way to include all the sheets in the work book starting with the letter T without listing all the sheets individually as above.

    Thank you,

    Eric
    Last edited by Ghostwheel; 04-15-2013 at 04:31 PM. Reason: Use code tags in future.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Appying a Macro to all sheets in a workbook at the same time.

    It will be good if you try and explain what you are trying to do.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Appying a Macro to all sheets in a workbook at the same time.

    try this.

    Please Login or Register  to view this content.
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  4. #4
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Appying a Macro to all sheets in a workbook at the same time.

    arlu1201,

    I'm using the Sheet Format Template page as a master to apply any changes to the format or layout to all the other T named sheets in the work book, So if I need to update the primary form layout I can do it with all the other sheets at the same time.

    Eric

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Appying a Macro to all sheets in a workbook at the same time. (SOLVED)

    Raga,

    That works somewhat, I moved my master sheet over 7 letters so the changes do not affect my information sheet as well as the rest of the sheets. So it gets me through the hurdle.

    Thanks

    Eric

+ 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