I had no problems in VB6 but can't seem to crack it in .Net
Dim M As Object = Nothing Dim Ank As String = WordApp.Application.Selection.Text Dim SA As String = adoc.Bookmarks.Item(1).Range.Text
The following throws an invalid parameter error
adoc.Hyperlinks.Add(Anchor:=Ank, Address:=M, SubAddress:=SA, ScreenTip:=M, TextToDisplay:=M, Target:=M)
Setting the optional parameters to nothing (M), " " or System.Reflection.Missing.Value does not seem to help
Any one got some experience to share?
Thanks in Advance
Moderator Note: Added code tags. Please, use code tags when posting code: