LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Change Link in batch of workbooks

Hi everyone,

I posted last week and Ron de Bruin pointed me to his website for code that
looped thru files in a folder which was just what I needed.

I've just come back to this bit of work now and realised that the original
code allows you to select the source of the old link and then of the new
link.

I would like to automate this and the old link will be the same for all 40
or so of the wkbks in the folder. The new link will be the active workbook.

ActiveWorkbook.ChangeLink Name:="C:\testing\Source.xls", _
newname:=strnewlink, _
Type:=xlLinkTypeExcelLinks

How do I write it so that newname is the active workbook each time?

Many thanks
--
Trish
 
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
Change links for batch of workbooks Trish Smith Excel Programming 2 October 10th 08 09:53 PM
Need2 batch print all the workbooks in 25 worksheets in one step richie s. Excel Discussion (Misc queries) 2 June 26th 06 03:46 PM
How to link cells in two workbooks that change daily? Doc Adams Excel Discussion (Misc queries) 2 May 14th 06 08:47 PM
Batch change Tester Excel Discussion (Misc queries) 0 November 9th 05 02:32 PM
macro to batch fix errors on password protected workbooks spence Excel Programming 4 October 7th 05 04:06 AM


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

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

About Us

"It's about Microsoft Excel"