Some examples that might help you:
Text boxes:
In VBA terms, a text box is a shape. The following code checks whether the
third shape in the active document is a text box. If that is the case, the
shape is selected. Note that the most recently created shape has the highest
index number, i.e. it is not the position in the document that determines the
number.
With ActiveDocument
If .Shapes(3).Type = msoTextBox Then
.Shapes(3).Select
End If
End With
Tables:
The following code selects the second table in the document:
ActiveDocument.Tables(2).Select
The following code selects the entire table in which the selection is
currently found:
Selection.Tables(1).Select
--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
"North Wales" wrote:
> Hi,
>
> How do I use a macro to select a text box and how can I do the same but
> select a table?
>
>
> Rich…
>