Hyperlink
meb135
Forums
Let's try that again.
Hi,
I'm trying to write a piece of code in ideascript that will open a word document and insert a file address at a bookmark location.
I'm getting an error message that the "Paramater is incorrect"
Any help on this would be appreciated
Thanks
Marc
Here's the code:
QBMail = "D:\IDEA\Test.docx"
MyAdd = D:\TemporaryLocation"
Set wrdApp = CreateObject("Word.Application")
Set wrdDoc = wrdApp.Documents.Open(QBMail)
if wrdDoc.Bookmarks.exists("MyAdd") then
wrdDoc.Hyperlinks.add(ActiveDocument.Bookmarks("MyAdd").Range, MyAdd)
end if
Hi Marc, I haven't done much
Hi Marc, I haven't done much work incorporating IDEA with word. So give me a few days and I will see if I can come up with anything. Thanks for posting the code.