Insert a HyperLink in to Word using VBA

T

TADropik

Using MS Access 2003.

I'm able to insert text in to the 2nd column of the 11th row of a table in a
word doc.
I'd like to insert a hyperlink in to that 2nd column of the 11th row of a
table in a word doc.

Below is a quick sample of the code I'm currently using:

Dim objWord As Word.Application
Dim objWordDoc As Word.Document

Set objWord = GetObject("", "word.application")
objWord.Documents.Open "C:\MyWord.doc"

With
objWord.ActiveDocument.Range(objWord.ActiveDocument.Tables(1).Rows(11).Cells(2).Range.Start, _

objWord.ActiveDocument.Tables(1).Rows(11).Cells(2).Range.End)
.InsertAfter "This is Some Text"

End With
 
T

TADropik

Yes, that is very helpful.

However, I'm struggleing with getting it to work with inserting multiple
hyperlinks in to a specific cell of that table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top