J
James Nest
I use this function to get only the text of a cell.
Function Gettext(IntCell As Integer, IntRow As Integer) As String
ThisDocument.Tables(1).Cell(IntCell, IntRow).Select
Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
Gettext = Selection.Text
End Function
It works, but is there a better way ?
Function Gettext(IntCell As Integer, IntRow As Integer) As String
ThisDocument.Tables(1).Cell(IntCell, IntRow).Select
Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
Gettext = Selection.Text
End Function
It works, but is there a better way ?