+ Reply to Thread
Results 1 to 2 of 2

changing tab color conditionally

  1. #1
    Registered User
    Join Date
    01-29-2005
    Posts
    5

    changing tab color conditionally

    I have a Workbook that contains several pages. Each page represents a different style of product. When my customer sends in an order I place the order quantity in a certain named cell on the corresponding worksheet. Is there a way that I can format the tab to change color if the quantity of the named cell is greater than 0?

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    04-11-2005
    Location
    London
    Posts
    259
    You will need to write a small amount of code as follows:

    Please Login or Register  to view this content.
    Needless to say, replace Range("A1") with whatever you want.
    Also the TabColorIndex is your call too.

    Place it in the ThisWorkBook Module of visual basic project explorer.
    I'm not sure what event you would want to attach it to. Open? Sheet Change? Sheet Deactivate? I'm sure you'll choose the best one for your needs.

    Let us know if you need any extra help
    Martin Short

+ 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