D drvmark Apr 29, 2009 #1 Want to set a variable equal to the indent level of text in a certain cell. How can I do this in VBA within Excel?
Want to set a variable equal to the indent level of text in a certain cell. How can I do this in VBA within Excel?
J Jacob Skaria Apr 29, 2009 #3 Use the .Column property as below Sub Mac() Dim fld1, fld2 As Range Set fld1 = Range("A5") Set fld2 = Range("F5") MsgBox fld2.Column - fld1.Column End Sub
Use the .Column property as below Sub Mac() Dim fld1, fld2 As Range Set fld1 = Range("A5") Set fld2 = Range("F5") MsgBox fld2.Column - fld1.Column End Sub