Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Repost - 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: 48
Default Repost - How to save Excel files which have passwords

Just add:
Activeworkbook.protect "yourpassword"
Activeworkbook.save

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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Repost - How to save Excel files which have passwords

Cliff,

Thanks for this.

-----Original Message-----
Just add:
Activeworkbook.protect "yourpassword"
Activeworkbook.save

"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
Can I save excel files as web connected files Sophia Chen Excel Discussion (Misc queries) 0 September 27th 06 11:34 PM
Can I save Excel files of the same name in the same folder? Aidan Engineer Excel Discussion (Misc queries) 2 August 31st 06 03:59 PM
How to save Excel files which have passwords Android Excel Programming 1 October 4th 03 08:59 AM
How to save Excel files which have passwords Android Excel Programming 0 September 26th 03 02:39 PM
disable save query definition in VBA sorry repost Cesar Zapata[_2_] Excel Programming 0 July 24th 03 04:37 PM


All times are GMT +1. The time now is 05:36 PM.

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"