ryan_law2000
Well-known Member
- Joined
- Oct 2, 2007
- Messages
- 738
Ok so i know you cant force macro enable but this is kinda what i would like to do:
I have 10 Sheets
Going to make all sheets Hidden except for one
this sheet will just have something saying "MUST ENABLE MACROS"
when my workbook is opened the application is hidden and only a userform is shown
at this point i would like the rest of my sheets to be visible
couple names are: "Main Page" and "Enter"
now all the data will be gatherd through multiple userforms and eventually closing the userform with this code:
I would like to add to this code
Hide all sheets other then sheet named "WARNING"
So the next time the sheet is opened (if macro's are not enabled) it will just show the one "Warning" sheet. Once macro's are enabled again it should show the userform and unlock all the sheets.
This was just an Idea i thought might work but I wouldnt know what the code would be. and i have tried everything
I have 10 Sheets
Going to make all sheets Hidden except for one
this sheet will just have something saying "MUST ENABLE MACROS"
when my workbook is opened the application is hidden and only a userform is shown
at this point i would like the rest of my sheets to be visible
couple names are: "Main Page" and "Enter"
now all the data will be gatherd through multiple userforms and eventually closing the userform with this code:
Code:
Private Sub CommandButton10_Click()
If MsgBox("Are you sure you want close Report", vbYesNo + vbQuestion) = vbYes Then
ActiveWorkbook.Close savechanges:=False
Else
End If
End Sub
I would like to add to this code
Hide all sheets other then sheet named "WARNING"
So the next time the sheet is opened (if macro's are not enabled) it will just show the one "Warning" sheet. Once macro's are enabled again it should show the userform and unlock all the sheets.
This was just an Idea i thought might work but I wouldnt know what the code would be. and i have tried everything