How to get link file name in vba

  • Thread starter Thread starter ppyxl
  • Start date Start date
P

ppyxl

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"
:confused:

Thanks a lot!

Ppyxl
 
Look at VBA's help for LinkSources.


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"
:confused:

Thanks a lot!

Ppyxl
 
Back
Top