#1   Report Post  
Posted to microsoft.public.excel.misc
paulrm906
 
Posts: n/a
Default Macro & Password


Hello everyone

I have made a macro which opens a file with a password (this is to
update it) then saves it and then closes, unfortunately I can not get
it to open without asking me for a password. I have already tried lots
of differant things but nothing works. Below I have pasted a copy of
the macro and just hope that some one can help me.

Sub Auto_Open()
'
' Auto_Open Macro
' Macro recorded 4/03/2006 by Paul Maynard
'

'
Workbooks.Open Filename:= _
"E:\Documents and Settings\anna\Desktop\Paul\Work\111.xls"
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub


Thanks in advance'

Paul Maynard
Moscow


--
paulrm906
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Macro & Password

Paul,
Try...
Workbooks.Open Filename:= _
"E:\Documents and Settings\anna\Desktop\Paul\Work\111.xls", Password:="MySecret"

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"paulrm906"
wrote in message...
Hello everyone
I have made a macro which opens a file with a password (this is to
update it) then saves it and then closes, unfortunately I can not get
it to open without asking me for a password. I have already tried lots
of differant things but nothing works. Below I have pasted a copy of
the macro and just hope that some one can help me.

Sub Auto_Open()
' Auto_Open Macro
' Macro recorded 4/03/2006 by Paul Maynard
Workbooks.Open Filename:= _
"E:\Documents and Settings\anna\Desktop\Paul\Work\111.xls"
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub


Thanks in advance
Paul Maynard
Moscow
paulrm906
  #3   Report Post  
Posted to microsoft.public.excel.misc
paulrm906
 
Posts: n/a
Default Macro & Password


Thanks Jim

It works great. did not think it would be something so simple.

Paul Maynard
Moscow.


--
paulrm906
------------------------------------------------------------------------
paulrm906's Profile: http://www.excelforum.com/member.php...o&userid=28776
View this thread: http://www.excelforum.com/showthread...hreadid=518952

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
Add protect worksheet password in macro Kelly Excel Worksheet Functions 1 January 10th 06 02:08 AM
Can T Get Macro To Run! Nipper New Users to Excel 2 November 4th 05 04:48 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Worksheet Functions 5 October 27th 05 09:57 AM
Password Issue keithl816 Excel Discussion (Misc queries) 6 July 10th 05 06:20 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


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