Patrick3001
New Member
- Joined
- Oct 28, 2010
- Messages
- 4
Hello all,
I'm sure this is very simple but I'm stuck.
I have a range of cells - L1:L1000 all of which need to have their font changed if the respective cell in T1:T1000 = "Caution".
I've got conditional formatting for background shading, but thats no good for people using black and white printers hence the font change.
So far I'm at:
Private Sub Worksheet_Calculate()
If (Range("T1")) = "Caution" Then
Range("L1").Font.Name = "Impact"
Else
Range("L1").Font.Name = "Calibri"
End If
This seems to work fine for "L1", I just don't know how to make it work through each row up to L1000.
I'm using excel 2010, but file has to also run in 2003.
Any help would be greatly appreciated.
Thanks
I'm sure this is very simple but I'm stuck.
I have a range of cells - L1:L1000 all of which need to have their font changed if the respective cell in T1:T1000 = "Caution".
I've got conditional formatting for background shading, but thats no good for people using black and white printers hence the font change.
So far I'm at:
Private Sub Worksheet_Calculate()
If (Range("T1")) = "Caution" Then
Range("L1").Font.Name = "Impact"
Else
Range("L1").Font.Name = "Calibri"
End If
This seems to work fine for "L1", I just don't know how to make it work through each row up to L1000.
I'm using excel 2010, but file has to also run in 2003.
Any help would be greatly appreciated.
Thanks