Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine cell Indent level?
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine cell Indent level?
intLevel = Range("A1").IndentLevel
If this post helps click Yes --------------- Jacob Skaria "drvmark" wrote: 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? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine cell Indent level?
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 -- If this post helps click Yes --------------- Jacob Skaria "drvmark" wrote: 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? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Determine cell Indent level?
Oops. Sorry. The below is a wrong post///
-- If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: 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 -- If this post helps click Yes --------------- Jacob Skaria "drvmark" wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Determine next level from a table | Excel Discussion (Misc queries) | |||
INDENT TEXT IN A CELL | Excel Discussion (Misc queries) | |||
Macro to Outline based on Indent Level | Excel Programming | |||
How can I remove an indent within a cell? | Excel Discussion (Misc queries) | |||
How can I query the 'indent' level of text in a cell? | Excel Programming |