Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2006

Tip: Looking for answers? Try searching our database.

DisplayOutline

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KC VBA Qns - 12 Dec 2006 05:15 GMT
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 - 12 Dec 2006 15:47 GMT
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

> Hi,
>
[quoted text clipped - 7 lines]
>
> Rgds,

Signature

Dave Peterson

KC VBA Qns - 13 Dec 2006 00:05 GMT
Thanks, Dave.

Somehow my Excel 2002 does not come with this option:
     Tools|options|view tab|outline symbols

I guess the equivalent is Ctrl-8. No?

Rgds,
Dave Peterson - 13 Dec 2006 00:29 GMT
Look again.  You'll see Outline Symbols in the bottom section in the middle
column.

But that's for viewing those symbols to the left of the worksheet.

> Thanks, Dave.
>
[quoted text clipped - 4 lines]
>
> Rgds,

Signature

Dave Peterson

KC VBA Qns - 13 Dec 2006 17:40 GMT
Thanks again.

My eyes must have played a trick earlier on. I thought I checked a
couple of times before writing.

Rgds,
Dave Peterson - 13 Dec 2006 17:52 GMT
Welcome to the club!!!

> Thanks again.
>
> My eyes must have played a trick earlier on. I thought I checked a
> couple of times before writing.
>
> Rgds,

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.