Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hi
I have got this macro to run when opening. All works, but when I password protect the sheet, and then close and open i get a run error. I am not fluent with VBA and get by by recording and pasting other work off the treads Can anyone let me have the VBA code for protect / unprotect. and where it should be entered in the code below . The password is "template" thanks in advance Private Sub auto_Open() Sub averagesort() Range("A6:AI36").Select Selection.Sort Key1:=Range("C6"), Order1:=xlDescending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlBottomToTop ActiveWindow.ScrollRow = 6 Range("A3").Select End Sub Signature bnt -- bnt Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...l-new/200607/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I password protect a hidden column in Excel? | Excel Worksheet Functions | |||
Can I protect all excel tabs in a file with one password entry? | Excel Discussion (Misc queries) | |||
Using VB to password protect, but sheet remains visible | Excel Discussion (Misc queries) | |||
Password Protect | Excel Worksheet Functions | |||
Auto Protect workbook with password upon opening | Excel Worksheet Functions |