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