Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a command to break all links at once? I have 70 spreadsheets and
need to open, save as, and break a dozen links and the links are different in each one. I would rather not have to edit the names of all the links if there is an easier way. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
the easiest way to break links to another excel file: Sub BreakLinks() Dim varLinks As Variant varLinks = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLi nks) On Error Resume Next Do ActiveWorkbook.BreakLink _ Name:=varLinks(1), _ Type:=xlLinkTypeExcelLinks Loop While Err = 0 End Sub Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub UseBreakLink()
Dim astrLinks As Variant ' Define variable as an Excel link type. astrLinks = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLi nks) ' Break the first link in the active workbook. for i = lbound(astrlinks) to ubound(astrlinks) ActiveWorkbook.BreakLink _ Name:=astrLinks(i), _ Type:=xlLinkTypeExcelLinks Next i End Sub -- Regards, Tom Ogilvy "Tim G." wrote: Is there a command to break all links at once? I have 70 spreadsheets and need to open, save as, and break a dozen links and the links are different in each one. I would rather not have to edit the names of all the links if there is an easier way. Thanks! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just some added info:
Breaklink was introduced in xl2002 or xl2003 - I don't recall which. -- Regards, Tom Ogilvy "Tim G." wrote: Is there a command to break all links at once? I have 70 spreadsheets and need to open, save as, and break a dozen links and the links are different in each one. I would rather not have to edit the names of all the links if there is an easier way. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
breaking links | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Worksheet Functions | |||
Breaking Links | Excel Discussion (Misc queries) | |||
Breaking Links | Excel Discussion (Misc queries) | |||
Breaking links | Links and Linking in Excel |