Macro on Share Protection

S

Steven Chan

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.
 
D

Dave Peterson

What error?

I tried the code in xl2003 and after I removed the fileformat parm, it worked
fine. (You must be using xl2007????)
 
S

Steven Chan

Thanks Dave. Yes, using 2007.I have got it working now with some tuning.

Steven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top