Returning the index number of the currently selected table

Dear Experts
Is it possible to get the index number of the currently selected table and display it in a Msgbox such as: "The cursor is located in Table no. xxx"

Help is appreciated. Thank you very  much in advance.

Regards, Andreas
Andreas HermleTeam leaderAsked:
Who is Participating?
 
R_RajeshCommented:
MsgBox "The cursor is located in Table no:" & _
ActiveDocument.Range(0, Selection.Tables(1).Range.End).Tables.Count
0
 
Andreas HermleTeam leaderAuthor Commented:
Rajesh:
thank you very much. It is working as desired.
Regards, Andreas
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.