Go to first cell of first table using VBA

Dear Experts:

I would like to have the following code snippet:

Go To first table in active document, so that the cursor is blinking / resides in the first cell of that (first) table

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
Andreas HermleTeam leaderAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
GrahamSkanConnect With a Mentor RetiredCommented:
Does this do it?
Sub SelectCell()
    ActiveDocument.Tables(1).Range.Cells(1).Select
    Selection.Collapse wdCollapseStart
End Sub

Open in new window

0
 
Andreas HermleTeam leaderAuthor Commented:
Hi Graham,

yes, this did the trick. Thank you very much for your great support.

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.