Share via

displayworkbooktabs = true problem

Anonymous
2012-01-25T04:07:05+00:00

I have a workbook that I disable the workbook tabls for using vba code.

When the workbook closes, I place the following code in the ThisWorkbook_Deactivate event:

With Application

        .DisplayFullScreen = False

        .CommandBars("Worksheet Menu Bar").Enabled = True

        .ActiveWindow.DisplayHeadings = True

        .ActiveWindow.DisplayGridlines = True

        .ActiveWindow.DisplayWorkbookTabs = True

 End With

When the workbook is closed and I create a new blank workbook, workbooktabs are not visible.

What other code do I need and in which events to make workbooktabs visible the next time I create a workbook?

Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2012-01-25T07:33:44+00:00

    Are other statements are working ?

    This settings are workbook level.Even if you do not run the statement the tab should be visible.

    Was this answer helpful?

    0 comments No comments