Having a Word document open at the end of the document

N

Newword

I am keeping a simple journal in Word. What setting do I use to have it open
at the end of the document so that I don't have to open, then scroll to the
end to make additional entries?
 
S

Suzanne S. Barnhill

Just press Ctrl+End when you open the document. You could create an AutoOpen
macro to do this, but then you'd have to enable the macro every time you
opened it, which would be more trouble than just pressing this shortcut.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Gordon Bentley-Mix

"You could create an AutoOpen macro to do this, but then you'd have to
enable the macro every time you opened it, which would be more trouble than
just pressing this shortcut."

Not quite true. If the document was based on a specific template and the
template was located in the right place and the macro security settings were
configured properly, the macro would run without any user intervention
required. In fact, depending on the version of Word, the macro could be in
the document itself and still allowed to run automatically if the document
was in a trusted location.

Having said that, even as a "professional" developer, I wouldn't waste my
time creating such a trivial macro; Ctrl+End is still a lot easier.
--
Cheers!

Gordon Bentley-Mix
Word MVP

Please post all follow-ups to the newsgroup.

Read the original version of this post in the Office Discussion Groups - no
membership required!
 
S

Suzanne S. Barnhill

Trusted locations were introduced in Word 2007. In earlier versions, you'd
have to store the document in the Templates folder for this to work (or, as
you say, the macro would have to be in the template the document was based
on).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

While not arguing with the general premise that here a macro is a
sledgehammer to crack a nut, this can be achieved with a couple of lines of
vba code in the normal template and work quite transparently.

If you add the following lines to an autoopen macro in the normal template
(changing the document name as appropriate) the journal will open with the
cursor at the end. Other documents will behave normally.

If ActiveDocument.name = "journaldocname.doc" Then
Selection.EndKey wdStory
End If

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Greg Maxey

Graham,

Conceding that it is just a matter of preference and in keeping with a new
naming convention, I would probably use:

If ActiveDocument.name = "journaldocname.doc" Then
NeedToOpenDocumentAtEndEveryTimeItOpensNailMeetsTheHammer
End If

in the AutoOpen macro to call this independent procedure:

Sub NeedToOpenDocumentAtEndEveryTimeItOpensNailMeetsTheHammer()
ActiveDocument.Bookmarks("\endofdoc").Select
End Sub
 
G

Gordon Bentley-Mix

Well I *did* say that it depended on the version of Word...
--
Cheers!

Gordon Bentley-Mix
Word MVP

Please post all follow-ups to the newsgroup.

Read the original version of this post in the Office Discussion Groups - no
membership required!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top