Hiding sheet from Access VBA.

kashif.special2005

Registered User.
Local time
Today, 22:35
Joined
Jan 19, 2011
Messages
19
Hi,

I am trying to apply xlveryhidden from Access but it is not working properly, it is hiding sheets but bot veryhidden means it is showing those sheets in unhide window.

Code

my_excel.Sheets("BSI Feedback Data DB").Visible = xlVeryHidden
my_excel.Sheets("Calculation Sheet").Visible = xlVeryHidden

Please help.

Thanks
Kashif
 
This works for me, what else is your code doing?

Code:
Sub hideShet()
Dim ws As Excel.Application
Set ws = CreateObject("Excel.Application")
With ws
    .Workbooks.Add
    .Sheets("sheet2").Visible = xlVeryHidden
    .Sheets("Sheet3").Visible = xlVeryHidden
    .Visible = True
    
End With

End Sub
 
Hi Trevor,

Thanks for reply

I have tried severl options for that I found the right option and that is
xlsheetveryhidden

below code is working fine

my_excel.Sheets("BSI Feedback Data DB").Visible = xlSheetVeryHidden

Thanks
Kashif.
 

Users who are viewing this thread

Back
Top Bottom