Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Save activeworkbook with a password

Am looking for a macro which would save my activeworkbook in its
existing location with a password (e.g "1234").
Can anybody help - thxs

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Save activeworkbook with a password

Try:-

Sub saveme()
ActiveWorkbook.Password = "1234"
ActiveWorkbook.Save
End Sub

Mike

" wrote:

Am looking for a macro which would save my activeworkbook in its
existing location with a password (e.g "1234").
Can anybody help - thxs


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Save activeworkbook with a password

On May 17, 12:52 pm, Mike H wrote:
Try:-

Sub saveme()
ActiveWorkbook.Password = "1234"
ActiveWorkbook.Save
End Sub

Mike

" wrote:
Am looking for a macro which would save my activeworkbook in its
existing location with a password (e.g "1234").
Can anybody help - thxs


thxs - works great !!

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
Unprotecting (with password) the activeworkbook Dave Peterson Excel Programming 0 January 10th 07 03:54 PM
Activeworkbook.save serge Excel Programming 0 February 9th 06 04:26 PM
ActiveWorkbook.Save DOESNT WORK !! slintz Excel Programming 8 July 22nd 05 10:42 PM
ActiveWorkbook.Protect password:=range("rangename") does not work WimR Excel Discussion (Misc queries) 1 June 26th 05 08:47 AM
troubles with ActiveWorkbook.Save Gabriele C[_4_] Excel Programming 1 August 11th 04 05:35 PM


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