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


Hello
I have a macro that opens many files/saves and closes them but is there
a way of opening a file with a password using a macro without having to
enter the password when the macro ask you. So other words is it
possible to have the password written into the actual macro itself.

Thanks in advance,

Paul Maynard
Moscow
Russia.


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

  #2   Report Post  
Posted to microsoft.public.excel.misc
FSt1
 
Posts: n/a
Default Macros & Passwords

hi,
open the vb editor (alt + F11). click help (in the vb editor). in the search
box, type "open method".
It will explain how to add the Password in the open statement used by the
macro.

regards
FSt1

"paulrm906" wrote:


Hello
I have a macro that opens many files/saves and closes them but is there
a way of opening a file with a password using a macro without having to
enter the password when the macro ask you. So other words is it
possible to have the password written into the actual macro itself.

Thanks in advance,

Paul Maynard
Moscow
Russia.


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


  #3   Report Post  
Posted to microsoft.public.excel.misc
paulrm906
 
Posts: n/a
Default Macros & Passwords


Hello FStl

I have gone into help tried everything that I could but I do not seen
to be getting anywhere. Everything that I try it keeps asking me for
the password that I am opening. Below is a copy of the actual macro, if
I can get help from you or anyone it will be greatly appreciated.

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

Paul Maynard
Moscow
Russia.


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

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
Random Passwords RUSS Excel Worksheet Functions 4 February 14th 06 12:01 AM
Excel crashes while opening excel file imbeddied with macros ct2147 Excel Discussion (Misc queries) 0 December 30th 05 09:05 PM
Macros, Protected Books & Missing Passwords jamesanddavid Excel Worksheet Functions 1 April 15th 05 05:45 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM


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