I need to export calc documents where I don’t want to keep the external links so I’m looking for the Basic macro code to remove the links (after updating it).
For updating external links in calc I found the following code
Sub UpdateExternalLinks()
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:UpdateTableLinks", "", 0, Array())
End Sub
Thanks a lot, Johann
here: How do I create a macro that will update external links? - #2 by anon73440385
What is the corresponding code for deleting the links?