Solved

Go to first cell of first table using VBA

Posted on 2013-05-15
2
470 Views
Last Modified: 2013-05-15
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
0
Comment
Question by:AndreasHermle
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 39168038
Does this do it?
Sub SelectCell()
    ActiveDocument.Tables(1).Range.Cells(1).Select
    Selection.Collapse wdCollapseStart
End Sub

Open in new window

0
 

Author Closing Comment

by:AndreasHermle
ID: 39168165
Hi Graham,

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

Regards, Andreas
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Like many others, we try and discourage users from printing documents unnecessarily and instead send or share them electronically. However, this doesn't always work and documents are still printed. With this simple solution, if the user tries to …
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question