Getting cursor to be in Text Box when opened

J

Jonathan Finney

I have a template (.dot) file I use to print an address on a label in the
middle of a sheet of labels.

I have a text box in the middle of the page, but when I open the template,
the cursor is at the top of the page rather than in the text box.

How can I get the template to open with the cursor in the text box?

If this is not possible, how can I set the document to show the text box
without adding anything that will print?
 
C

CyberTaz

Hi Jonathan -

Assuming you are using Word 2002-2003, are you familiar with Tools>Letters &
Mailings>Envelopes & Labels? If not, you might have a look at that first, as
it sounds from your description that you may be attempting to re-invent the
wheel.

Otherwise, please be more exact with your purpose (including software
version), as there is no 'setting' for what you are asking - text boxes are
embedded (i.e., 'foreign') objects in a doc. If focus is not to be shifted
to one *manually* (by clicking in it) it would require a VBA solution.
 
J

Jay Freedman

Assuming there are no other text boxes or floating graphics in a newly
created document based on this template, you can place this macro in a
module in your template (see http://www.gmayor.com/installing_macro.htm). It
runs automatically when you use the File > New command to make a new
document based on the template. [Note: *do not* use File > Open on the
template unless you want to change the template itself.]

Sub AutoNew()
On Error GoTo done
ActiveDocument.Shapes(1).TextFrame.TextRange.Select
Selection.Collapse wdCollapseEnd
done:
End Sub

The macro can be adjusted if there are other other objects that interfere,
but I'd have to know what they are and where they're anchored.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Top