Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I recorded a macro as follows to share a file with password protection : -
ActiveWorkbook.ProtectSharing Filename:="C:\Users\Public\VwPL RDD RS.xls", _ Password:="xxcc", WriteResPassword:="vvbb", FileFormat:=xlExcel8 The recording went thru fine. When I play it back it shows an error. Can anyone help. Tq. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What error?
I tried the code in xl2003 and after I removed the fileformat parm, it worked fine. (You must be using xl2007????) Steven Chan wrote: I recorded a macro as follows to share a file with password protection : - ActiveWorkbook.ProtectSharing Filename:="C:\Users\Public\VwPL RDD RS.xls", _ Password:="xxcc", WriteResPassword:="vvbb", FileFormat:=xlExcel8 The recording went thru fine. When I play it back it shows an error. Can anyone help. Tq. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Dave. Yes, using 2007.I have got it working now with some tuning.
Steven "Dave Peterson" wrote: What error? I tried the code in xl2003 and after I removed the fileformat parm, it worked fine. (You must be using xl2007????) Steven Chan wrote: I recorded a macro as follows to share a file with password protection : - ActiveWorkbook.ProtectSharing Filename:="C:\Users\Public\VwPL RDD RS.xls", _ Password:="xxcc", WriteResPassword:="vvbb", FileFormat:=xlExcel8 The recording went thru fine. When I play it back it shows an error. Can anyone help. Tq. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Share Macro | Excel Discussion (Misc queries) | |||
Share workbook with protection | Excel Worksheet Functions | |||
Share a macro | New Users to Excel | |||
I recorded a macro, how can i share it with others? | Excel Worksheet Functions | |||
Share write protection fails | Excel Discussion (Misc queries) |