InsertIndent does not like 0
Try
[VBA]
For Each levelcell In ActiveSheet.Range("A3:A" & ActiveSheet.Cells.SpecialCells(xlLastCell).Row)
If levelcell <= 15 Then levelcell.IndentLevel = levelcell
Next levelcell
[/VBA]
InsertIndent does not like 0
Try
[VBA]
For Each levelcell In ActiveSheet.Range("A3:A" & ActiveSheet.Cells.SpecialCells(xlLastCell).Row)
If levelcell <= 15 Then levelcell.IndentLevel = levelcell
Next levelcell
[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'