Reply
 
Thread Tools Display Modes
  #1   Report Post  
Jim L.
 
Posts: n/a
Default How do I save the cursor location?

Sorry but I couldn't find an answer for this one... How do I save the cursor
on a template so when I open a document from it I can start from the right
spot. Specifically, I have a text frame at the top of the page and when I
open a document from the template, the frame is highlighted. How can I start
the cursor in the desired text field, or not have a cursor starting location
at all? Please help. Thank you in advance. -- Jim
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

Jim L. wrote:
Sorry but I couldn't find an answer for this one... How do I save the
cursor on a template so when I open a document from it I can start
from the right spot. Specifically, I have a text frame at the top of
the page and when I open a document from the template, the frame is
highlighted. How can I start the cursor in the desired text field,
or not have a cursor starting location at all? Please help. Thank
you in advance. -- Jim


Hi Jim,

Place a bookmark at the point where you want the cursor to start. (I assume
it's not a text form field in a protected document, because then the cursor
would automatically start in the first field, and the frame could not be
selected.)

Create two macros in the template (see
http://www.gmayor.com/installing_macro.htm) that looks like this -- but
change the "StartHere" to the name of the actual bookmark.

Public Sub AutoNew()
ActiveDocument.Bookmarks("StartHere").Range.Select
End Sub

Public Sub AutoOpen()
On Error Resume Next
ActiveDocument.Bookmarks("StartHere").Range.Select
End Sub

The first macro runs when you use File New to make a new document based on
the template, and the second one runs when you open a saved document based
on the template.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS-Word 2003: Cannot save customized toolbar Maročka krtica New Users 10 February 16th 05 06:35 PM
How do you force a Save As in a Word based form? Diane R. Microsoft Word Help 2 January 12th 05 05:59 PM
Save and Save As tab disappeared from File Menu Karen Microsoft Word Help 2 January 10th 05 12:30 AM
macro to save rtf file as txt reballdad Microsoft Word Help 1 December 20th 04 10:17 PM
Save As...*.txt files Scribe Microsoft Word Help 2 December 13th 04 04:45 AM


All times are GMT +1. The time now is 06:38 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"