Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to have a macro open a view on a worksheet and really want to
have the worksheet protected. If i set a worksheet password the user is prompted for it when they click on the macro button, is there any way i can inlcude the password in the macro? I would also like to protect the worksheet once the macro has been run. The macro is as follows. ActiveSheet.Unprotect ActiveWorkbook.CustomViews("2 - Monday View").Show ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _ , AllowFormattingCells:=True, AllowFormattingColumns:=True, _ AllowFormattingRows:=True, AllowSorting:=True Range("L9").Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password protection in macro ( Anybody can view my password in VB | Excel Discussion (Misc queries) | |||
Open a workbook with a password via macro - How to? | Excel Discussion (Misc queries) | |||
macro to open csv file on the web with password | Excel Programming | |||
Macro Password to open or access | Excel Worksheet Functions | |||
is there anyway to make it so the users of my excel spread sheet cant view the macro code w/o a password? | Excel Worksheet Functions |