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

This is probably really simple and I'm just missing it, but need something
that will tell Excel that if I'm opening a file in the file folder "Loan
Recovery MIS" or if the file path name begins with
"\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS" then do not
update the links.

I've tried

If filepath = "\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS" _
Then UpdateLinks:=0

But I get "Expected = Expression" with the := highlighted.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 212
Default Filepath and Updating Links

You are not refering to a workbook at all.
Then it is not Links but Link
And it is not filepath but .Path

Something like below -

If ThisWorkbook.Path = "\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan
Recovery MIS" _
Then ThisWorkbook.UpdateLink:=False

(you can of course shorten a bit using With statement)

Tell us how exactly you are opening the workbook (I presume that you are
opening it through VBA),
and we can tell you how to do it.

Sharad

"StephanieH" wrote in message
...
This is probably really simple and I'm just missing it, but need something
that will tell Excel that if I'm opening a file in the file folder "Loan
Recovery MIS" or if the file path name begins with
"\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS" then do not
update the links.

I've tried

If filepath = "\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS"
_
Then UpdateLinks:=0

But I get "Expected = Expression" with the := highlighted.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Filepath and Updating Links

I open a main file using VBA (there's other stuff built in of course, but
here's that line)
Workbooks.Open Filename:="\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan
Recovery MIS\" & MyValue & "\Gross Placement Batch Tracks\Summary Data\" &
ListBox1.List(i) & " GBT Summary " & MyValue & ".xls"

But from there, I have several hyperlinks to other files in the Loan
Recovery MIS folder. When they are access from the hyperlink, they will
automatically prompt the user to update the links. I don't think it can be
surpressed the hyperlink, so I was hoping to use a macro to automatically
tell it to not update any file in Loan Recovery MIS upon opening.



"Sharad Naik" wrote:

You are not refering to a workbook at all.
Then it is not Links but Link
And it is not filepath but .Path

Something like below -

If ThisWorkbook.Path = "\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan
Recovery MIS" _
Then ThisWorkbook.UpdateLink:=False

(you can of course shorten a bit using With statement)

Tell us how exactly you are opening the workbook (I presume that you are
opening it through VBA),
and we can tell you how to do it.

Sharad

"StephanieH" wrote in message
...
This is probably really simple and I'm just missing it, but need something
that will tell Excel that if I'm opening a file in the file folder "Loan
Recovery MIS" or if the file path name begins with
"\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS" then do not
update the links.

I've tried

If filepath = "\\Fl-aejf-fs1\Data\Data\RECOVERY\EXLDATA\Loan Recovery MIS"
_
Then UpdateLinks:=0

But I get "Expected = Expression" with the := highlighted.




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
Updating links ck13 Excel Discussion (Misc queries) 0 March 19th 10 01:29 AM
Links are not updating S.Latza Excel Worksheet Functions 0 April 18th 08 07:47 PM
Updating Links WhytheQ Excel Discussion (Misc queries) 7 June 1st 06 11:25 AM
Updating links Brisbane Rob Excel Discussion (Misc queries) 2 April 1st 06 09:54 PM
Updating Links hurlbut777 Excel Programming 1 November 19th 04 03:47 AM


All times are GMT +1. The time now is 03:41 AM.

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"