Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Open a workbook with a password via macro - How to?

Can anyone advise how I can open the following workbook via a macro:

Workbooks.Open Filename:= "\\server_route\tbl_processes.xls"

Password = XYZ
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Open a workbook with a password via macro - How to?

Hi,

Try this

Sub stantial()
Workbooks.Open "c:\mypath\book1.xls", Password:="abc"
End Sub

Mike

"fishy" wrote:

Can anyone advise how I can open the following workbook via a macro:

Workbooks.Open Filename:= "\\server_route\tbl_processes.xls"

Password = XYZ

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
Excel macro to open a password protected workbook Stephen C Excel Discussion (Misc queries) 8 December 1st 08 05:36 AM
Open Workbook Macro??? Supe Excel Discussion (Misc queries) 2 December 19th 07 08:37 PM
need to open my workbook not asking for password so i can do so Christine[_2_] Excel Discussion (Misc queries) 0 October 4th 07 10:31 PM
Excel Macro to open password protected workbooks? DBM[_2_] Excel Discussion (Misc queries) 3 March 30th 07 04:48 PM
Macro Password to open or access Param Excel Worksheet Functions 0 March 6th 06 04:24 PM


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