Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP OLE - Create Hyperling on a Word Document

Former Member
0 Kudos
155

Hi,

My next step of creating a word document using OLE is to define some hyperlinks on a document. I have ran a macro in word to 'see what it does' when manually creating a hyperlink. Below is the macro: -

ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="", _

SubAddress:="_Program_Z_OPEN_HRS_UPD_WRF1", ScreenTip:="", TextToDisplay _

:="This is the program"

I have tried to implement this using ABAP with no success. Maybe because I still dont fully understand how to interprete these marcos as ABAP.

Has anybody created a hyperlink on a word document before, if so, seeing the code would be a great help.

Thanks

Martin

Edited by: Martin Shinks on Dec 21, 2011 9:52 AM

1 REPLY 1

Former Member
0 Kudos
99

Never mind, with a bit of jiggery pokery, I fixed it myself.