Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Getting cursor to be in Text Box when opened
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? -- Jonathan Finney |
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Getting cursor to be in Text Box when opened
Hi Jonathan -
Assuming you are using Word 2002-2003, are you familiar with ToolsLetters & MailingsEnvelopes & 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. -- HTH|:) Bob Jones [MVP] Office:Mac "Jonathan Finney" wrote in message ... 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? -- Jonathan Finney |
#3
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Getting cursor to be in Text Box when opened
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.Selec t 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 FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Jonathan Finney wrote: 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? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Header with picture or text box | Page Layout | |||
Creating dynamic cross reference links in a Word document | Microsoft Word Help | |||
Hidden text won't stick | Formatting Long Documents | |||
Wandering text box | Microsoft Word Help | |||
textbox to normal text | New Users |