VBA: Unhide Very Hidden Sheet

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
826
Office Version
  1. 365
Platform
  1. Windows
I sheet 9 very hidden. How can i adjust code so it will run properly.
Thanks as always


Code:
Sub unhide_9()
'
' unhide_9 Macro
'
    With Worksheets("Sheet9")
        .Visible = xlSheetVisible
        .Select
        Application.Wait Now + #12:00:12 AM#
        Worksheets("BURN").Select
        .Visible = xlSheetHidden
    End With
    
End Sub
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Ok, I have Run into another problem with this. I have the code below in the Worksheet code
Private Sub Worksheet_Change(ByVal Target As Range)
If Target(1).Value = "Final" Then Call SHOW_7
End Sub
after that this code runs
Sub SHOW_7()
'
' SHOW_7 Macro
'
'
'
With Worksheets("Sheet7")
.Visible = xlSheetVisible
.Select
Application.Wait Now + #12:00:05 AM#
Worksheets("BURN").Select
.Visible = xlVeryHidden
End With

End Sub
I need the code to delete the word "Final" when it finishes
 
Upvote 0
try this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    With Target(1)
        If .Value = "Final" Then
        Call SHOW_7
        Application.EnableEvents = False
        .Value = ""
        Application.EnableEvents = True
        End If
    End With
End Sub

If you want more help, tell us in what module this code is located. (is it for the sheet "BURN"?)
 
Upvote 0
hi,

Love this website! It has some great hints and tips for us newbies to VBA.

Could someone please point me in the right direction of code that would allow only certain user profile names to automatically access the very hidden worksheets when they open the document? When non authorised users open i would like them to see certain worksheets but not, obviously, the very hidden ones.

I hope this makes sense and that it isnt too much hassle to write.

TVM,
CE
 
Upvote 0
Hello
Welcome to MrExcel!

You replied to an old thread, which is not a very good idea. (In fact you're lucky that I saw it already now.)
You could do a search for "password" & "users" or something like that. If you can not find what you want, you can start a new thread. You could insert some links to other threads for reference. At the moment I can't really spent much time here.

kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,804
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top