LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default update links to password protected workbooks.

Dear all, I think from my research here and on other sites that i am trying
the impossible but I would like this confirmed or a solution please!

I have a user that has 30 workbooks each of which are password protected with
unique passwords, please note it is workbook not worksheet passords.

There is a summary workbook with links to cells in each of the 30 workbooks.
The user wants a command button theat will enable all links to be updated.
the problem is that when trying this the user is asked for the password.
Please see code I have so far:

Public Sub updateWBLinks()
Dim oWB As Workbook
thisbk = ActiveWorkbook.Name ' this is the summaray sheet.
dbfilepath = "I:\Social Services\HQ\Performance Management\Richard Henderson\
Hayling Island master v1.xls" ' this is the file to get data from -
password protected.
Application.DisplayAlerts = False
Set oWB = Workbooks.Open(Filename:=dbfilepath, UpdateLinks:=3, Password:
="se112", writerespassword:="se112")
MsgBox ActiveWorkbook.Name
Workbooks(thisbk).Activate
Workbooks(thisbk).UpdateLink Name:=ActiveWorkbook.LinkSources ' this causes
the password dialogue box to be displayed.
oWB.Close

For now I am only working with the one workbook am ok with a routine to open
all 30.

any ideas??


Many thanks
End Sub

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200905/1

 
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 workbooks with links between them Dez Excel Discussion (Misc queries) 2 June 27th 08 09:08 AM
Links to password protected workbooks Michelle Excel Discussion (Misc queries) 9 May 2nd 08 06:33 PM
Links to password protected workbooks Michelle Excel Worksheet Functions 9 May 2nd 08 06:33 PM
Links to password protected workbooks Michelle Links and Linking in Excel 9 May 2nd 08 06:33 PM
Links to password protected workbooks Nesta777 Excel Discussion (Misc queries) 1 July 19th 06 12:34 PM


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