Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening password protected files


I want to open a number of other files that are password protected from
my main file. I know all the passwords and want to use code to
automatically open and close the files after getting data from each
file.

Any help greatly appreciated.

Nick


--
Nick S
------------------------------------------------------------------------
Nick S's Profile: http://www.excelforum.com/member.php...o&userid=16512
View this thread: http://www.excelforum.com/showthread...hreadid=483480

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Opening password protected files

Workbooks.Open "C:\MyFolder\MyFiles.xls", password:="ABCD"

--
Regards,
Tom Ogilvy

"Nick S" wrote in
message ...

I want to open a number of other files that are password protected from
my main file. I know all the passwords and want to use code to
automatically open and close the files after getting data from each
file.

Any help greatly appreciated.

Nick


--
Nick S
------------------------------------------------------------------------
Nick S's Profile:

http://www.excelforum.com/member.php...o&userid=16512
View this thread: http://www.excelforum.com/showthread...hreadid=483480



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening password protected files


Thanks Tom that solves one problem, I am using links and in order that
dont receive the updating links warning message open one file fro
another with the following code

Private Sub Workbook_Open()
Dim strPath As String

strPath = "\\Fiesta\Wg_memb_sec\Community Dividend\Ne
Payments\Admin\Chq Details\"

Workbooks.Open strPath & "Cheque Payment Run.xls", UpdateLinks:=True
Windows("Payment Control.xls").Activate
ActiveWindow.Close SaveChanges:=False

End Sub

Can I add code so that I will not have to manually enter all th
passwords for the 7 linked files.

Thanks

Nick

--
Nick
-----------------------------------------------------------------------
Nick S's Profile: http://www.excelforum.com/member.php...fo&userid=1651
View this thread: http://www.excelforum.com/showthread.php?threadid=48348

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Opening password protected files

Not that I am aware of.

--
Regards,
Tom Ogilvy


"Nick S" wrote in
message ...

Thanks Tom that solves one problem, I am using links and in order that I
dont receive the updating links warning message open one file from
another with the following code

Private Sub Workbook_Open()
Dim strPath As String

strPath = "\\Fiesta\Wg_memb_sec\Community Dividend\New
Payments\Admin\Chq Details\"

Workbooks.Open strPath & "Cheque Payment Run.xls", UpdateLinks:=True
Windows("Payment Control.xls").Activate
ActiveWindow.Close SaveChanges:=False

End Sub

Can I add code so that I will not have to manually enter all the
passwords for the 7 linked files.

Thanks

Nick.


--
Nick S
------------------------------------------------------------------------
Nick S's Profile:

http://www.excelforum.com/member.php...o&userid=16512
View this thread: http://www.excelforum.com/showthread...hreadid=483480



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 Protected Files ToiE Excel Discussion (Misc queries) 3 November 4th 09 08:16 PM
Opening a password-protected spreadsheet from a website link Héctor Miguel Excel Discussion (Misc queries) 0 August 17th 08 08:16 AM
password protected page not opening by web query vive2567 Excel Worksheet Functions 0 January 13th 06 03:20 AM
Excel password protected not opening up on just one PC. M. Lord Excel Discussion (Misc queries) 2 July 25th 05 04:01 PM
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM


All times are GMT +1. The time now is 09:19 AM.

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"