Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to save Excel files which have passwords
This is a repost. Hope someone has come across this...
I have a Workbook which is password protected. Everytime someone runs this file, it reads other files and may update itself. I have added VBA codes to it to detect if anything changed. I would like to add code to it so that everytimes it changes (which can only happen if someone launches it), it will save itself without asking user for the password. Did not find any relevant info in Help. Any pointers from anyone? Android. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to save Excel files which have passwords
Hi Android
See if this works for you. Alter path and password before running the test: Sub SaveMe() Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="C:\Temp\Book1.xls", _ FileFormat:=xlNormal, _ Password:="PW", _ WriteResPassword:="", _ ReadOnlyRecommended:=False, _ CreateBackup:=False Application.DisplayAlerts = True End Sub -- HTH. Best wishes Harald Followup to newsgroup only please. "Android" wrote in message ... This is a repost. Hope someone has come across this... I have a Workbook which is password protected. Everytime someone runs this file, it reads other files and may update itself. I have added VBA codes to it to detect if anything changed. I would like to add code to it so that everytimes it changes (which can only happen if someone launches it), it will save itself without asking user for the password. Did not find any relevant info in Help. Any pointers from anyone? Android. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
UNable to save excel files | Excel Discussion (Misc queries) | |||
How do I save DBase IV files in Excel 7.0? | Excel Discussion (Misc queries) | |||
Can I save excel files as web connected files | Excel Discussion (Misc queries) | |||
download to be able to save files as CSV in Excel? | Excel Discussion (Misc queries) | |||
How to save Excel files which have passwords | Excel Programming |