Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default 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
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
UNable to save excel files Vijay Pawar Excel Discussion (Misc queries) 1 February 20th 08 06:34 PM
How do I save DBase IV files in Excel 7.0? Kmontgo Excel Discussion (Misc queries) 7 April 11th 07 03:52 AM
Can I save excel files as web connected files Sophia Chen Excel Discussion (Misc queries) 0 September 27th 06 11:34 PM
download to be able to save files as CSV in Excel? BrianH Excel Discussion (Misc queries) 1 December 22nd 04 03:11 AM
How to save Excel files which have passwords Android Excel Programming 0 September 26th 03 02:39 PM


All times are GMT +1. The time now is 01:36 AM.

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

About Us

"It's about Microsoft Excel"