Hyperlink

5 posts / 0 new
Last post
meb135
Offline
Joined: 03/06/2014 - 08:43
Hyperlink

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
 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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.

meb135
Offline
Joined: 03/06/2014 - 08:43

Thanks Brian.
Marc

gabriel
Offline
Joined: 03/10/2020 - 17:09

Hi there is a way that i can make a hyperlink using a button?
 I want to open a website URL
Regards

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hi Gabriel,

Here is a simple script that will open google.com from internet explorer.