macro programming for word

C

Colin13579

Can anybody help me with this query. It has been a while since i did any
macro work and i am a bit rusty. I have a table with various cells in it and
would like a macro which will ensure the cursor is place back in the top left
hand cell before proceeding with the rest of the routine.

Thanks in advance

colin
 
G

Graham Mayor

Selection.GoTo What:=wdGoToTable, Which:=wdGoToFirst
or
ActiveDocument.Tables(1).Cell(1, 1).Select
Selection.Collapse

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
T

Tony Jollans

In the vast majority of, in fact in almost all, cases, macros do not need to
position the cursor in order to work their magic, and are better and more
efficient for not doing so. What is it that you're trying to do that
requires this? Perhaps there's a better way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top