diamonddave
New Member
- Joined
- Jul 23, 2010
- Messages
- 4
Good Morning, I'm working in excel 2003 and am trying for formate the sub total line associated with the sub total function. The row number will be variable, but the column range is fixed from Column B to AP. I can get to the starting point using the following: Note data does not exist in all columns B to AP
Cells.Find(What:="4 Total", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, -1).Select
ActiveCell.FormulaR1C1 = "Sub Total"
ActiveCell.Offset(1, 0).Select
I have tried the following but no luck.
'range(ActiveCell & (LastColumn)).Select
'range(ActiveCell.Offset(-5, 0) & ActiveCell.Offset(35, 0)).Select
being new to programing, I'm note sure if I'm on the right track. any Ideas.
Cells.Find(What:="4 Total", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, -1).Select
ActiveCell.FormulaR1C1 = "Sub Total"
ActiveCell.Offset(1, 0).Select
I have tried the following but no luck.
'range(ActiveCell & (LastColumn)).Select
'range(ActiveCell.Offset(-5, 0) & ActiveCell.Offset(35, 0)).Select
being new to programing, I'm note sure if I'm on the right track. any Ideas.