Dave Peterson
12/12/2006 3:47:00 PM
I think that's the equivalent of checking
Tools|options|view tab|outline symbols
Maybe you could use something like:
Option Explicit
Sub testme01()
Dim myRow As Range
Dim IsOutLineUsed As Boolean
IsOutLineUsed = False
For Each myRow In ActiveSheet.UsedRange.Rows
If myRow.OutlineLevel > 1 Then
IsOutLineUsed = True
Exit For
End If
Next myRow
MsgBox IsOutLineUsed
End Sub
KC VBA Qns wrote:
>
> Hi,
>
> Can anyone help?
>
> I always get True for ActiveWindow.DisplayOutline regardless if I
> really have an outline or not. Has this to do with my Excel being 2002?
>
> I need to determine if the sheet has an outline so as to collapse to
> the appropriate level.
>
> Rgds,
--
Dave Peterson