Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Visual Basic Macro(VBA) for a password protected file?


How do I create a Visual Basic Macro(VBA) for a password protected file
I essentially want the VBA to open the file, update the links and sav
it. But when I run the VBA, it forces me to type in the password fo
my file. Since the VBA is going to open about 20 files, if I have t
type the password in every time, it defeats the purpose of the VBA.
Can anyone please help me? Thank you so very much

--
eroszz
-----------------------------------------------------------------------
eroszzz's Profile: http://www.excelforum.com/member.php...nfo&userid=846
View this thread: http://www.excelforum.com/showthread.php?threadid=39340

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Visual Basic Macro(VBA) for a password protected file?

The workbook.Open method has an argument for password. Use that to specify
the password.

--
Regards,
Tom Ogilvy


"eroszzz" wrote in
message ...

How do I create a Visual Basic Macro(VBA) for a password protected file?
I essentially want the VBA to open the file, update the links and save
it. But when I run the VBA, it forces me to type in the password for
my file. Since the VBA is going to open about 20 files, if I have to
type the password in every time, it defeats the purpose of the VBA.
Can anyone please help me? Thank you so very much.


--
eroszzz
------------------------------------------------------------------------
eroszzz's Profile:

http://www.excelforum.com/member.php...fo&userid=8464
View this thread: http://www.excelforum.com/showthread...hreadid=393406



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
Password in Visual basic editor Tia[_3_] Excel Worksheet Functions 0 July 11th 08 08:40 AM
creating an exe file with visual basic (installation file for Macros and Userforms) [email protected] Excel Programming 3 August 5th 04 10:16 AM
Password in Visual Basic - Help! ricw Excel Programming 2 April 30th 04 07:57 PM
using visual basic to access a protected DB Mike Tomasura Excel Programming 2 November 21st 03 02:59 PM
How to Open A File with Visual Basic Lance[_3_] Excel Programming 1 November 18th 03 08:43 PM


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