Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using RowIndex Property? 1

Status
Not open for further replies.

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.
 
Code:
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top