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
meb135
Offline
Last seen: 5 years 9 months ago
Joined: 03/06/2014 - 08:43
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.
Thanks Brian.
Marc
Hi there is a way that i can make a hyperlink using a button?
I want to open a website URL
Regards
Hi Gabriel,
Here is a simple script that will open google.com from internet explorer.