auto.pilot
Well-known Member
- Joined
- Sep 27, 2007
- Messages
- 734
- Office Version
- 365
- Platform
- Windows
Using Excel 2010, column C includes values, some of which start with a number and others which start with a letter. Like this:
I am seeking a method to indent the sub footnotes, the cells which do not start with a number. The end result should look like this:
I have this bit of code which looks for the word 'No', then indents the adjacent cell. I don't need the offset part, but I'd like to adapt it to do what is shown above based on if the first character is not a number.
Just can't wrap my head around how to do this. Would appreciate any thoughts.
Thanks
Jim
Code:
1) Footnote
2) Footnote2
a) sub footnote
b) sub footnote 2
3) Footnote3
a) sub foonote
I am seeking a method to indent the sub footnotes, the cells which do not start with a number. The end result should look like this:
Code:
1) Footnote
2) Footnote2
a) sub footnote
b) sub footnote 2
3) Footnote3
a) subfootnote
I have this bit of code which looks for the word 'No', then indents the adjacent cell. I don't need the offset part, but I'd like to adapt it to do what is shown above based on if the first character is not a number.
Code:
For Each i in Sheets("Output").Range("C2:C100")
If i.Value = "No" Then
i.Offset(0,1).InsertIndent 2
End If
Next i
Just can't wrap my head around how to do this. Would appreciate any thoughts.
Thanks
Jim