Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all,
I have a multiple worksheets which i wish to password protect. I have done so using the following VBA code: Sub ProtectAllSheets() Application.ScreenUpdating = False Dim n As Single For n = 1 To Sheets.Count Sheets(n).Protect Password:="XXXX" Next n Application.ScreenUpdating = True End Sub Sub UnprotectAllSheets() Application.ScreenUpdating = False Dim n As Single For n = 1 To Sheets.Count Sheets(n).Unprotect Password:="XXXX" Next n Application.ScreenUpdating = True End Sub I do not wish others to be able to view this code as it defeats the purpose of password protecting it. How do i hide this macro but still be able to run it at my own expense? Cheers, Grant. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for your help..worked perfectly!
grant. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to hide row with 0.00 | Excel Worksheet Functions | |||
Need a macro to hide certain columns | Excel Discussion (Misc queries) | |||
hide/unhide macro | Excel Discussion (Misc queries) | |||
Excel Macro Hide | Excel Worksheet Functions | |||
hide rows with macro | Excel Discussion (Misc queries) |