Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro on Share Protection

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Macro on Share Protection

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro on Share Protection

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share Macro Sarah Excel Discussion (Misc queries) 1 March 13th 08 04:41 PM
Share workbook with protection Pieter Excel Worksheet Functions 0 February 2nd 07 10:30 AM
Share a macro ClaireView New Users to Excel 1 December 20th 06 06:40 PM
I recorded a macro, how can i share it with others? TA Excel Worksheet Functions 1 September 8th 06 08:09 PM
Share write protection fails Mikael Schvili Excel Discussion (Misc queries) 0 March 22nd 06 11:12 AM


All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"