Can you "very hide" a workbook?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Office 2003 and Windows XP;

You can "very hide" a sheet.

You can "hide" a workbook.

But, can you "very hide" an Excel workbook using VBA? Or, can you "very
hide" an instance of the application? If so, what would the VBA look like?

Thanks much in advance.
 
Yes. Very Hidden hides the worksheet and prohibits the user from unhiding it
through the Format -> Sheets -> Unhide menu.

Here's the code:

Sub veryHidden()
Worksheets("mySheet").Visible = xlVeryHidden
End Sub

HTH,
Pflugs
 
There's nothing directly equivalent however, temporarily or even permanently
changing the workbook's IsAddin status achieves same. Ie no visible sheets
and not shown under Window > Unhide. The workbook's project remains visible
in the VBE, as does an xlSheetVveryHidden sheet.

Dim wb As Workbook
Set wb = Workbooks("VeryHiddenBook.xls")
wb.IsAddin = True

Concerning your second question, with automation you can choose whether to
make the Excel instance Visible.

Regards,
Peter T
 

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

Back
Top