Set the Starting Cursor Position in a Word Macro-Enabled Template
Question details
Set the starting cursor position in a Word macro-enabled letterhead template.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A letterhead template fills in information when a new document is created, and the user wants to begin writing at a specific location.
- Observed behavior
- The cursor starts at the top of the page instead of at the intended writing position.
Open the macro-enabled template itself for editing, rather than a new document based on it. Check whether the template already has an AutoNew macro so you can add the cursor-positioning code to it.
Use a bookmark and AutoNew macro to position the cursor
Use this method to move the cursor to a defined writing location whenever a new document is created from the template.
In the template, click where users should begin typing. Select Insert > Bookmark, enter StartHere as the bookmark name, and select Add.
Select Developer > Visual Basic, or press Alt+F11. In the project for the template, open a standard module or choose Insert > Module.
If there is no existing AutoNew macro, add this code to the module: Sub AutoNew() ActiveDocument.Bookmarks("StartHere").Select End Sub. If an AutoNew macro already exists, add only ActiveDocument.Bookmarks("StartHere").Select near its end, after the code that fills in the letterhead.
Use File > Save to save the template as a Word Macro-Enabled Template (.dotm). Then create a new document from it using File > New and confirm that the cursor is at the bookmark.

Create and edit letterhead documents with WPS Writer
WPS Writer is a free, lightweight alternative for creating and editing letterhead documents. Its familiar interface and support for Word formats make it easy to move everyday documents from Microsoft Office. Word's AutoNew macro behavior should be tested separately in WPS.

Frequently Asked Questions
Why does the cursor still start at the top of the document?
Check that the StartHere bookmark exists in the template and that the AutoNew code is stored in the template's VBA project. Create a new document from the template and check whether Word allows its macros to run.
What if the template already has an AutoNew macro?
Open Developer > Visual Basic and add ActiveDocument.Bookmarks("StartHere").Select near the end of the existing AutoNew procedure, after the letterhead information is filled in. Do not create a second AutoNew procedure.
Which file format should I use for the template?
Save it as a Word Macro-Enabled Template (.dotm) using File > Save As. A macro-free template format will not retain the VBA macro.
Does AutoNew run when I open the template for editing?
AutoNew is intended to run when you create a new document based on the template. To test it, create a new document from the saved template rather than opening the template itself.




