Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know there is a better way to do this, but i dont know how.
Sub closerlabel() ActiveCell.Offset(columnoffset:=3).Select Selection.Value = "* Closer Reinforcement" ActiveCell.Offset(0, 2).Select With ActiveCell .Interior.ColorIndex = 41 .Font.ColorIndex = 2 End With ActiveCell.Offset(0, 1).Select With ActiveCell .Interior.ColorIndex = 41 .Font.ColorIndex = 2 End With ActiveCell.Offset(0, 1).Select With ActiveCell .Interior.ColorIndex = 41 .Font.ColorIndex = 2 End With ActiveCell.Offset(rowoffset:=1, columnoffset:=-3).Select End Sub thoughts? Thanks. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200706/1 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Generally the pros eschew needless selecting.
Sub Alternative() With ActiveCell .Offset(0, 3).Value = "* Closer Reinforcement" With .Offset(0, 5).Resize(1, 3) .Interior.ColorIndex = 41 .Font.ColorIndex = 2 End With End With End Sub -- Jim "brownti via OfficeKB.com" <u31540@uwe wrote in message news:734e08149cb64@uwe... |I know there is a better way to do this, but i dont know how. | | Sub closerlabel() | ActiveCell.Offset(columnoffset:=3).Select | Selection.Value = "* Closer Reinforcement" | ActiveCell.Offset(0, 2).Select | With ActiveCell | .Interior.ColorIndex = 41 | .Font.ColorIndex = 2 | End With | ActiveCell.Offset(0, 1).Select | With ActiveCell | .Interior.ColorIndex = 41 | .Font.ColorIndex = 2 | End With | ActiveCell.Offset(0, 1).Select | With ActiveCell | .Interior.ColorIndex = 41 | .Font.ColorIndex = 2 | End With | ActiveCell.Offset(rowoffset:=1, columnoffset:=-3).Select | End Sub | | thoughts? Thanks. | | -- | Message posted via OfficeKB.com | http://www.officekb.com/Uwe/Forums.a...mming/200706/1 | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple conditional formating for one cell | Excel Worksheet Functions | |||
Conditional Formating multiple cells in 1 row based on a list of d | Excel Worksheet Functions | |||
Formating the same cells in multiple worksheet at the same time? | Excel Discussion (Misc queries) | |||
Multiple Conditional Formating | Excel Discussion (Misc queries) | |||
conditional formating cells i Excel based on other cells values | Excel Worksheet Functions |