Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
i used the following VBA code to chage the colour of using a condition -
Sub test() If Sheets("Sheet1").Range("A1").Value < "hello" Then Sheets("Sheet1").Tab.ColorIndex = 6 Else Sheets("Sheet1").Tab.ColorIndex = -4142 End If End Sub ---------------------------------- my problem is that if rename the worksheet from "Sheet1" to say "1" the macro has an Run Time Error 9. I changed the VBA code to "Sheet1" to "1" but nothing happened, help requested. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Macro - change printer | Excel Discussion (Misc queries) | |||
how you change font colour in header/footer? | Excel Discussion (Misc queries) | |||
change a cell background colour to my own RGB colour requirements | Excel Discussion (Misc queries) | |||
Excel - conditional formating on graphs. Change colour on a value | Charts and Charting in Excel | |||
Event Macro adjustment needed - need to change font color also | Excel Worksheet Functions |