Calling all VBA Genius's
I have an excel 2007 workbook containing a load of 'veryhidden' worksheets
I usually unhide with the following script but today its not happening!
Any ideas?
Sub UnhideAll()
Dim WS As Worksheet
For Each WS In Worksheets
WS.Visible = xlSheetVisible
Next
End Sub
I usually unhide with the following script but today its not happening!
Any ideas?
Sub UnhideAll()
Dim WS As Worksheet
For Each WS In Worksheets
WS.Visible = xlSheetVisible
Next
End Sub
Stumped to be honest as my VBA skills are limited!
if you run it in step-through / debug mode and hover the pointer over 'WS' or 'Worksheets', does it show you the number of objects in the collection?
another thing worth checking might be that you haven't got events/updating disabled?
in the immediates windows (View, Immediates) type Application.EnableEvents=True and press enter. Same with Application.ScreenUpdating.
Send me a skeleton sheet if you like -
another thing worth checking might be that you haven't got events/updating disabled?
in the immediates windows (View, Immediates) type Application.EnableEvents=True and press enter. Same with Application.ScreenUpdating.
Send me a skeleton sheet if you like -
Last edited by cjwood555; Aug 1, 2012 at 11:54 PM.
Thread
Thread Starter
Forum
Replies
Last Post
rsguy
General Car Related Discussion.
44
Sep 29, 2015 03:29 PM




