Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bob!
That works perfect! Graeme -----Original Message----- Graeme, Try This For i = 25 to Cells(Rows.Count,"A").End(xlUp).Row If Range("A" & i).Value <"" Then Range("A" & i & ":I" & i).InsertIndent Range ("A" & i).Value End If Next i -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Graeme" wrote in message ... Ok, I figured our how to do my indenting per line, Range("A23:I23").Select Selection.InsertIndent (ActiveCell.Value) Range("A24:I24").Select Selection.InsertIndent (ActiveCell.Value) Range("A25:I25").Select Selection.InsertIndent (ActiveCell.Value) Range("A26:I26").Select Selection.InsertIndent (ActiveCell.Value) Is there a way to simplify the code to check row 1 for a value, if there is a value then perform the indent. Move to the next line and perform the operation until it comes to a blank row, then it stops? Sorry for the newbie questions, Thanks, Graeme . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
simple vb script to open, | Excel Discussion (Misc queries) | |||
Simple If, If part 2 (clarification) | Excel Worksheet Functions | |||
Why won't this simple VBA script work in excel 2002? | Excel Discussion (Misc queries) | |||
Simple VB Script needed | Excel Programming | |||
Need help with simple VBA Script | Excel Programming |