View Single Post
 
Old 01-15-2023, 10:22 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The following will do that
Code:
Sub SelectThisTable()
Dim oTable As Table
    If Selection.Information(wdWithInTable) Then
        Set oTable = Selection.Tables(1)
        oTable.Range.Select
    Else
        MsgBox "Not in a table", vbCritical
    End If
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote