Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 23 Jun 2005 23:54 GMT
how to automate opening a password protected excel file? e.g. a .xls that
has a password set in the security tab.
Dave Peterson - 24 Jun 2005 00:28 GMT
With no checking...

Option Explicit
Sub testme()
   Dim Wkbk As Workbook
   Set Wkbk = Workbooks.Open(Filename:="C:\My Documents\excel\book1.xls", _
                    Password:="hithere")
End Sub

The code has to "know" the password.

> how to automate opening a password protected excel file? e.g. a .xls that
> has a password set in the security tab.

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.