View Single Post
 
Old 12-14-2016, 08:36 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
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 of
Default

You can get the table and row from the selection
Code:
Dim oTable As Table
Dim iRow As Long
If Selection.Information(wdWithInTable) Then
    Set oTable = Selection.Tables(1)
    iRow = Selection.Rows(1).Index
    MsgBox "Selection in row " & iRow
Else
    MsgBox "Not in Table"
End If
__________________
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