Hi,
I have a bit of VBA code to add text to particular cells in a table generated in Word:
With objTable
.Cell(4, 2).Range.Text = Chr(10) & "TEXT 1"
.Cell(4, 2).Range.Font.Bold = True
.Cell(5, 2).Range.Text = "TEXT 2"
.Cell(5, 2).Range.Font.Bold = True
.Cell(2, 3).Range.Text = "TEXT 3"
.Cell(2, 3).Range.Font.Bold = True
etc.
End With
Does anyone know how I need to adapt this to add hyperlinks, e.g hyperlink X to TEXT 1, hyperlink Y to TEXT 2, etc.?
I have a bit of VBA code to add text to particular cells in a table generated in Word:
With objTable
.Cell(4, 2).Range.Text = Chr(10) & "TEXT 1"
.Cell(4, 2).Range.Font.Bold = True
.Cell(5, 2).Range.Text = "TEXT 2"
.Cell(5, 2).Range.Font.Bold = True
.Cell(2, 3).Range.Text = "TEXT 3"
.Cell(2, 3).Range.Font.Bold = True
etc.
End With
Does anyone know how I need to adapt this to add hyperlinks, e.g hyperlink X to TEXT 1, hyperlink Y to TEXT 2, etc.?