Forum Discussion
LuisElCaminante
Nov 25, 2023Brass Contributor
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...
- Dec 01, 2023
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
Dec 01, 2023
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
- LuisElCaminanteDec 10, 2023Brass ContributorThank you very much!
Your solution is much better than mine and more efficient.
Thank you!