View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JohnQ[_2_] JohnQ[_2_] is offline
external usenet poster
 
Posts: 1
Default change links by a macro

I'm using the macro below to change the input file.
I have to do this for 20 spreadsheets which contains 5
similar links each.

The problem is that excel is not been able to locate the
new file and or path.


Sheets.Select

Cells.Select

Selection.Replace What:= _
"H:\2004\[source.XLS]", _
Replacement:= _
"H:\2005\[source.XLS]", LookAt _
:=xlPart, SearchOrder:=xlByRows, MatchCase:=False