Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Break Links using a macro problem

Hiya,

I have a nice long macro in which some sheets are copied to another workbook
& the links are broken.
Originally, the sheets were copied to 'Bookx' a completely new workbook, but
due to needing an auto_open macro for the output files, I've had to create a
template for them to be copied to -that's the only difference & now the break
links bit doesn't work.

Code extract Befo
Sheets(Array("Instruct&Methodology", "Resource", "Area", "ADO", "LDG1",
"LDG2", "LDG3", "LDG4", "LDG5", _
"LDG6", "LDG7", "LDG8", "LDG9")).Copy
For Each wkb In Application.Workbooks
If Left(wkb.Name, 4) = "Book" Then
wkb.Activate
GoTo ExitLoop
End If
Next wkb

ExitLoop:

ActiveWorkbook.BreakLink Name:=ThisWorkbook.FullName,
Type:=xlLinkTypeExcelLinks

Code Extract After:
Sheets(Array("Instruct&Methodology", "Resource", "Area", "ADO", "LDG1",
"LDG2", "LDG3", "LDG4", "LDG5", _
"LDG6", "LDG7", "LDG8", "LDG9")).Copy
Befo=Workbooks("Template.xls").Sheets(1)

Workbooks("Template.xls").BreakLink Name:=ThisWorkbook.FullName,
Type:=xlExcelLinks

I've tried a few variations on this final line, but none have worked.
Any suggestions?

Thanks
merry_fay

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
Break internal links doublew Excel Discussion (Misc queries) 3 May 2nd 07 04:42 PM
Break Links in Excel 97 CraigH Links and Linking in Excel 1 February 9th 07 05:31 PM
Break Links Sean Excel Discussion (Misc queries) 1 October 25th 06 03:34 PM
Unable to break links GHawkins Excel Worksheet Functions 0 April 21st 06 07:21 PM
break links problem John Excel Discussion (Misc queries) 3 June 30th 05 02:13 PM


All times are GMT +1. The time now is 01:55 AM.

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"