+ Reply to Thread
Results 1 to 5 of 5

Apply macro between tabs

  1. #1
    Registered User
    Join Date
    09-15-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    33

    Thumbs up Apply macro between tabs

    Good Day,

    I am really new to the world of macros and this is my first post, so my apologies if my question makes no or little sense. I will try my best to be as concise as possible.

    I have a worksheet that I am always adding sheets to by duplicating an already existing tab. The tab ,"Current Invoice", is nested between sheets called "first" and "last". All duplicate sheets will also be nested between the "First" and "Last" tabs. What I would like to do is have a macro that affects all tabs between the "First" and "Last" only, even when the bookend tabs are hidden.

    This is what I've started with.

    HTML Code: 
    Any advise you can offer would be great. Thanks.

    Regards-
    Kiki
    Last edited by mrsogmax76; 10-03-2009 at 11:00 AM. Reason: SOLVED

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: Apply macro between tabs

    Maybe this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-15-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Apply macro between tabs

    Thank you for responding so quickly. This is my first time so pardon me if I didn't hit all the high points the first go around. There are additional sheets in the workbook that fall outside the bookend sheets. When I run the code below, it affects those as well. I want only the sheets between the bookend tabs to be affected.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Apply macro between tabs

    Still not sure I follow entirely but perhaps:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-15-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Apply macro between tabs

    Fabulous thank you so much. It works like a charm.

+ 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