+ Reply to Thread
Results 1 to 5 of 5

Macro to only Print Worksheets that are tabbed the same color

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    florida
    MS-Off Ver
    Excel 2003
    Posts
    6

    Macro to only Print Worksheets that are tabbed the same color

    I have a spreadsheet that the tabs are color coded based on their use. I need a macro that selects and prints only the sheets that are of a certain color. The names of the worksheets can change. Any advice to get started?

  2. #2
    Registered User
    Join Date
    01-29-2013
    Location
    florida
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Macro to only Print Worksheets that are tabbed the same color

    I don't have much excel experience, but I was thinking of starting like this:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Macro to only Print Worksheets that are tabbed the same color

    you could use a function to get a reference to the sheets matching

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    01-29-2013
    Location
    florida
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Macro to only Print Worksheets that are tabbed the same color

    That worked perfectly. Was there any purpose in the MsgBox pop-ups, other than letting you know what sheets were being printed? I didn't need that functionality, so I removed that snippet of code, but thanks a ton.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Macro to only Print Worksheets that are tabbed the same color

    msgbox was only for illustration, safe to remove.

+ 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