This content has been marked as final. Show 4 replies
myLink = myTextFrame.ParentStory.ItemLink
strLink = "C:\1-Setup...." 'Path goes here
Dim fso, fileLink
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileLink = fso.GetFile(strLink) 'Path goes here
myLink.Relink(fileLink) 'fileLink is file, not string
Do you happen to know what would be the equivalent in .net? I know it is not really the best to use, but I have gotten my stuff working in there and don't want to redo it in vbscript if I don't have to.
Sorry, error all the same appears.
Though a picture relinked.
I was actually able to put that exact code in and it worked. Thanks for your help.