Vba Set Worksheet Visible. Various sheets are hidden and made visible through macros. When I right click on a sheet name the hide, unhide options are grayed out.
I have tried Sub UnHideSheets() Dim ws As Worksheet For Each ws In. Activate Worksheet (Setting the ActiveSheet) To set the ActiveSheet use Worksheet. Make sure the sheet you are using it on is changed.
If you want to know how to do something quickly then check out the quick guide to the VBA Worksheet below.
The Userform should not close if the workbook application remains visible.
VBA code: Hide some specific worksheets when opening a workbook: Private Sub Workbook_BeforeClose(Cancel As Boolean) 'Updateby Extendoffice. Visible = True Next End Sub Changing the visible property in the properties-window also works. Application Set acApp = GetObject("C:\Documents and Settings\" & Environ("USERNAME") & "\Application Data\Microsoft\Outlook\OutlookToIssueTracker.accdb") acApp.