BombCenter
New Member
- Joined
- Aug 31, 2011
- Messages
- 19
Hello world!
I'm trying to (programmatically on createSheet_click) conditionally format a cell's color if it does not equal the value of a cell on another worksheet.
Basically, something like this:
If ('Std. Kitchen with Granite'!L9 != 'Std. Kitchen'!L9) Then [Highlight the cell]
I know the syntax is off, I'm not familiar with VBA syntax specifically, though you get the gist.
I've attempted to do this the easy way by creating conditional formatting rules, but my copy of Excel 2007 (SP2) says it cannot reference values on another worksheet. However, John Walkenbach's Excel Bible 2007 says its possible (bottom of page 423) and MSDN (http://msdn.microsoft.com/en-us/library/bb286672(v=office.11).aspx) also concurs.
Individual named ranges are an impossibility since I'll be highlighting changes on 8+ columns across 40+ worksheets.
Is there some special procedure I have to follow to do this? Or are both MSDN and Walkenbach in error?
I'm trying to (programmatically on createSheet_click) conditionally format a cell's color if it does not equal the value of a cell on another worksheet.
Basically, something like this:
If ('Std. Kitchen with Granite'!L9 != 'Std. Kitchen'!L9) Then [Highlight the cell]
I know the syntax is off, I'm not familiar with VBA syntax specifically, though you get the gist.
I've attempted to do this the easy way by creating conditional formatting rules, but my copy of Excel 2007 (SP2) says it cannot reference values on another worksheet. However, John Walkenbach's Excel Bible 2007 says its possible (bottom of page 423) and MSDN (http://msdn.microsoft.com/en-us/library/bb286672(v=office.11).aspx) also concurs.
Individual named ranges are an impossibility since I'll be highlighting changes on 8+ columns across 40+ worksheets.
Is there some special procedure I have to follow to do this? Or are both MSDN and Walkenbach in error?