Link to home
Start Free TrialLog in
Avatar of LSpiker
LSpiker

asked on

Set Cursor Start position using Autoexec.

In the AutoExec of word I want my cursor to start on table(1).cell(3,2)  How exactly would I code that in vb?
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Select ActiveDocument.Tables(1).Cell(3,.2).Range 'select whole cell
Selection.Collapse wdCollapseStart 'select start of text in cell
Avatar of LSpiker
LSpiker

ASKER

Here is what I have and it isn't working...What am I missing?

Sub AUTOEXEC()

   Select ActiveDocument.Tables(1).Cell(1, 1).Table(1).Cell(3, 2).Range  'select whole cell
   Selection.Collapse wdCollapseStart 'select start of text in cell

End Sub
Sorry. I should have been more careful:

    ActiveDocument.Tables(1).Cell(3, 2).Range.Select  'select whole cell
    Selection.Collapse wdCollapseStart 'select start of text in cell
Avatar of LSpiker

ASKER

No problem.  It looks like this will work.  However not under AutoExec.  What other command can I use for this?
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LSpiker

ASKER

Excellent.... That did it Sir..