Forum Discussion

LuisElCaminante's avatar
LuisElCaminante
Brass Contributor
Nov 25, 2023
Solved

Table cell value from VBA

Hello, I have a question.   When I get the value of a cell from a table in Word, it always brings it with an unknown character.   If we activate "Show All" we see that there is a respective symbo...
  • LuisElCaminante Use the following construction

     

    Dim t As Table
    Dim r As Range
    Set t = ActiveDocument.Tables(1)
    Set r = t.Cell(1, 2).Range
    r.End = r.End - 1
    Debug.Print r.Text

     

Resources