Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default password protect on workbook

Hi
I am trying to save a file that requires a passowrd not
for opening , but only for opening and saving.
I would like password to be false and WriteResPassword
true.
The below code is not working for me.
Thanks
Jo
Password Optional Variant. A case-sensitive string (no
more than 15 characters) that indicates the protection
password to be given to the file.
WriteResPassword Optional Variant. A string that
indicates the write-reservation password for this file. If
a file is saved with the password and the password isn't
supplied when the file is opened, the file is opened as
read-only.

Sub save()
ActiveWorkbook.SaveAs "jo", xlNormal, , "anne"
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default password protect on workbook

Your code works perfectly for me as is. How is it failing for you?

--
Jim Rech
Excel MVP


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
How do I password protect an excel workbook? Debbie B Excel Discussion (Misc queries) 2 August 3rd 09 01:05 PM
Fluent UI and protect workbook with password Nick Excel Discussion (Misc queries) 3 July 7th 08 06:16 PM
How do I password protect a workbook in Excel? Elmer Excel Discussion (Misc queries) 4 March 13th 08 06:50 PM
Password Protect a Workbook ? Bubey New Users to Excel 4 December 19th 06 03:13 AM
password protect workbook Rob Excel Discussion (Misc queries) 1 August 16th 06 11:55 AM


All times are GMT +1. The time now is 10:41 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"