Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Update Links

Hi. How can adjust the following line of code to update links?

Set WB = Workbooks.Open(Filename:=OneFile.path)

I tried Set WB = Workbooks.Open(Filename:=OneFile.path), Update Links:=1
but that didn't work.

Thanks!



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Update Links

Steph,
By "that didn't work" you mean the line was red and would not compile ?
That is generally a hint that there is a syntax error.
Brackets of a function/method need contain all its arguments.
(N.B. not in this case, but if you are NOT assigning the return value, do
not include the brackets.)

Not sure what OneFile is, but I would assume a workbook. If so, then
OneFile.path will evaluate to a folder; you cannot open a folder in Excel.
You would need something like [OneFile.Path & "TwoFile.xls"].

Also the named arguments are single words; so "updatelinks", no space.
Read
http://msdn.microsoft.com/library/en...procedures.asp
for these help on these.

NickHK

"Steph" wrote in message
...
Hi. How can adjust the following line of code to update links?

Set WB = Workbooks.Open(Filename:=OneFile.path)

I tried Set WB = Workbooks.Open(Filename:=OneFile.path), Update Links:=1
but that didn't work.

Thanks!





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
update links kevcar40 Excel Discussion (Misc queries) 0 October 23rd 08 05:45 PM
My links don't update robnsd Excel Discussion (Misc queries) 0 March 28th 08 04:53 PM
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
Excel 2003 - Update or Don't Update Links Problem Jamie Excel Programming 4 July 7th 05 02:08 PM
can't update links...can't find links GJR3599 Excel Discussion (Misc queries) 1 April 4th 05 04:56 PM


All times are GMT +1. The time now is 11:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"