ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can't get Break Links macro to work... from last week (10/6) (https://www.excelbanter.com/excel-worksheet-functions/245376-cant-get-break-links-macro-work-last-week-10-6-a.html)

Steve

Can't get Break Links macro to work... from last week (10/6)
 
Sorry if I should've followed the original thread, but I thought it wouldn't
be seen anymore.

Anyway, I can't get this macro to break any links:

Sub BreakLinks()'Bob Umlas
LNames = ActiveWorkbook.LinkSources(xlExcelLinks)
For i = 1 To UBound(LNames)
ActiveWorkbook.BreakLink Name:= _
LNames(i), Type:=xlLinkTypeExcelLinks
Next
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steve" wrote in message
...
I copy the data from a sheet I did not create, and apparently it has
numerous
links in it. I have to individually Edit-Links-Break Links many, many
times.
Is there a way I can do something that will break all the links in one
shot ?
( I do not want to paste-values to not get the links).

Thanks,

Steve




All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com