Setting Password & WriteResPassword

  • Thread starter Thread starter Kevin H. Stecyk
  • Start date Start date
K

Kevin H. Stecyk

Setting Password & WriteResPassword

Once I have opened a workbook that is Password protected and
WriteResPassword protected, how do I then save the workbook with a new
Password and WriteResPassword?

I know to open a workbook it is simply:

Workbooks.Open Filename:="MyBook.xls", Password:="TopSecret1",
WriteResPassword:="TopSecret2"

I thought Workbooks("MyBook.xls").Close would have the same properties. But
it doesn't.

Any guidance is appreciated.

Regards,
Kevin
 
Kevin H. Stecyk...
Setting Password & WriteResPassword

Once I have opened a workbook that is Password protected and
WriteResPassword protected, how do I then save the workbook with a new
Password and WriteResPassword?

I know to open a workbook it is simply:

Workbooks.Open Filename:="MyBook.xls", Password:="TopSecret1",
WriteResPassword:="TopSecret2"

I thought Workbooks("MyBook.xls").Close would have the same properties.
But it doesn't.

Any guidance is appreciated.

Regards,
Kevin


ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Junk\DeleteBook.xls", FileFormat _
:=xlNormal, Password:="delete", WriteResPassword:="delete", _
ReadOnlyRecommended:=True, CreateBackup:=False
 

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

Back
Top