+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting across sheets based on cell value

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Stoke-On-Trent, England
    MS-Off Ver
    2010
    Posts
    40

    Conditional formatting across sheets based on cell value

    Hi All

    I am new to VBA and would like a little help with a challenge that I am facing.

    I would like to apply a conditional format to a number of cells based on another cells value.

    For example if

    Sheet 1 cell B2= "1" then I would like to colour the interior of cells "D5:E5" on sheet2 blue (colour index for this is 12611584 if it is needed).

    This would then go on to look sheet1, cell B3 and would format sheet2 cells "F5:G5" and so on...

    If this could be attached to a button also that would be even better

    If any one could help me with this it would be great!

    Thanks in advance for any help that can be offered
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Conditional formatting across sheets based on cell value

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-29-2015
    Location
    Stoke-On-Trent, England
    MS-Off Ver
    2010
    Posts
    40

    Re: Conditional formatting across sheets based on cell value

    Hi John

    Thank you for your quick reply. I have added in the code and it is not doing what i thought. I think that I may need to add a little context to what I am aiming to do with this.

    Sheet 1 contains the data for an agents attendance 1=Out Of Office 0= In the office, this is then sorted by agent by date
    Sheet 2 contains open and booked appointments for an agent in a similar format; the Idea is that if an agent is marked as out of the office then the day on sheet 2 is formatted to highlight this.

    I hope that this helps.

    Thank you again though

    Regards

    Dominic

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting based on cells in multiple sheets
    By bobmanuk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2014, 10:30 AM
  2. Replies: 13
    Last Post: 07-09-2014, 04:10 PM
  3. Replies: 1
    Last Post: 04-16-2014, 04:30 AM
  4. [SOLVED] Add border & apply conditional formatting to sheets based on cell value
    By amar05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 11:02 AM
  5. Conditional formatting based on other results from other sheets......
    By Samba Glee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2013, 02:20 PM

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