DisplayWorkbookTabs: How to mirror Sheet Tabs option?

G

Glenn

I would like to use the DisplayWorkbookTabs to access the "Sheet Tabs"
check box value found on a workbooks' "View" option tab.

I would have thought that the
Application.ActiveWindow.DisplayWorkbookTabs would reflect this.
However, if I have a workbook with "Sheet Tabs" option unchecked, I
nonetheless find that Application.ActiveWindow.DisplayWorkbookTabs =
True immediately after loading the workbook file.

What code would I use to determine if the "Sheet Tabs" option is
checked/uncheked?

Thanks.
 
G

Glenn

Thanks, Leith.

Although it seems that that would work, I don't think I have that
option available. I am using Excel Automation from within VB, using
late binding. Unless I'm doing something wrong, apparently, I don't
get any Excel events using late binding.

Besides that, why is it that my code works in the Workbook_Open event,
yet if I place it in VB immediately after opening the document, it
doesn't?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top