Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to get link file name in vba


Hi, guys,

My excel has a few links to some of the other files. I want to get the
directories of all these files to the variants in vba, how can I do
that.

For example:
ActiveWorkbook.ChangeLink Name:= _
"K:\report_wk28_20060714.xls", NewName:= _
"K:\report_wk28_20060714.xls", Type:=xlExcelLinks

I want to get a string "a" and a="K:\report_wk28_20060714.xls"


Thanks a lot!

Ppyxl


--
ppyxl
------------------------------------------------------------------------
ppyxl's Profile: http://www.excelforum.com/member.php...o&userid=36116
View this thread: http://www.excelforum.com/showthread...hreadid=562017

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to get link file name in vba


Pls Pls Pls help! Thanks!


--
ppyxl
------------------------------------------------------------------------
ppyxl's Profile: http://www.excelforum.com/member.php...o&userid=36116
View this thread: http://www.excelforum.com/showthread...hreadid=562017

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to get link file name in vba

Look at VBA's help for LinkSources.



ppyxl wrote:

Hi, guys,

My excel has a few links to some of the other files. I want to get the
directories of all these files to the variants in vba, how can I do
that.

For example:
ActiveWorkbook.ChangeLink Name:= _
"K:\report_wk28_20060714.xls", NewName:= _
"K:\report_wk28_20060714.xls", Type:=xlExcelLinks

I want to get a string "a" and a="K:\report_wk28_20060714.xls"


Thanks a lot!

Ppyxl

--
ppyxl
------------------------------------------------------------------------
ppyxl's Profile: http://www.excelforum.com/member.php...o&userid=36116
View this thread: http://www.excelforum.com/showthread...hreadid=562017


--

Dave Peterson
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
Link from Chart File to Data File / Format Problem Brad Bross Charts and Charting in Excel 0 July 31st 08 10:15 PM
Is it possible to link cell formatting in Excel from file to file KimW Excel Discussion (Misc queries) 4 August 17th 06 07:03 PM
Excel file link with word file kilianli Excel Worksheet Functions 1 March 10th 06 08:17 AM
xls spool file doesn't automatically link to new xls file zimon72 Excel Discussion (Misc queries) 0 January 19th 06 08:23 AM
How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file? Starriol Excel Programming 0 November 3rd 05 11:59 AM


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