Guest_imported
New member
- Jan 1, 1970
- 0
I need to equate a constant to the row number where the cursor is currently situated within the word table. I have failed to find an example of this anywhere, can anyone help, I know this should be simple.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Sub test()
If Selection.Information(wdWithInTable) Then
MsgBox "you are in row # " & Selection.Cells(1).RowIndex
Else
MsgBox "not in table"
End If
End Sub