Solved

Go to first cell of first table using VBA

Posted on 2013-05-15
2
469 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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 …
If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

776 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