Startup Macro

S

-Steve--Krause-

Two questions:

1) Is this group, microsoft.public.office.misc, the best place to ask
questions about Word 2002?

2) I have a Word document, 2003.doc, that I am using to record my daily
activities making one line entries to record that I talked to someone about
something, ordered a part, completed a document, etc. Every day I type the
date and throughout the day I add stuff under it. So when I open the
document everyday I want it to go to the bottom of the document
automatically. I made the most simple macro called End_of_Doc which just
captures the Cntrl END keystroke. I then added it to a shortcut that
calls 2003.doc So that it is now: 2003.doc /mEnd_of_Doc But it
doesn't work. When the document opens I am sitting at the top of the
document, not the bottom. Any suggestions?

Steve Krause
(e-mail address removed)
 
S

-Steve--Krause-

I see a chance for confusion in the way I wrote this:
2) I have a Word document, 2003.doc, that I am using to record my daily
activities making one line entries to record that I talked to someone about
something, ordered a part, completed a document, etc.

The document was written using Word 2002. The file name of the document is
"2003.doc".

Steve
 
S

-Steve--Krause-

Open "Help", Look up "AutoExecute" and read up on the /m switch to sort
this out.
AutoExecute is not indexed in Word2002's Help. Initially I did find very
brief instructions about /m when I looked for Startup in Help.


Control what happens when you start Word
To modify how Microsoft Word starts on a one-time basis, you can add
switches to the Microsoft Windows Run command (Start menu). If you plan to
use a modified startup method frequently, you can create a shortcut on the
Windows desktop.

Add switches to the Run command

1.. On the Windows Start menu, click Run.
2.. Enter the path to Word, such as C:\Program Files\Microsoft
Office\Office\Winword.exe, or click Browse to locate it.
3.. At the end of the path, type a startup switch.
Create a desktop shortcut

1.. Right-click the Windows desktop, point to New, and then click
Shortcut.
2.. In the Type the location of the item box or the Command Line box,
enter the path to Word, such as C:\Program Files\Microsoft
Office\Office\Winword.exe, or click Browse to locate it.
3.. At the end of the path, type a startup switch.
Startup switches

/ttemplatename
Start Word with a new document based on a template other than the Normal
template. Example: /tMyfax.dot
/a
Start Word and prevent add-ins and global templates (including the Normal
template) from being loaded automatically. The /a switch also locks the
setting files.
/laddinpath
Start Word and then load a specific Word add-in. Example:/lSales.dll
/m
Start Word without running any AutoExec macros.
/mmacroname
Start Word and then run a specific macro. The /m switch also prevents Word
from running any AutoExec macros. Example:/mSalelead
/n
Start a new instance of Word with no document open. Documents opened in
each instance of Word will not appear as choices in the Window menu of other
instances.
/w
Start a new instance of Word with a blank document. Documents opened in
each instance of Word will not appear as choices in the Window menu of the
other instances.
Note To suppress automatic macros without using switches, hold down SHIFT
while you start Word. If you start Word from the Microsoft Office Shortcut
Bar, click the button for the program on the Office Shortcut Bar first, and
then immediately hold down SHIFT while Word starts.
 
B

Bob I

Humm, that being the case I think I would make the "CTRL-End" macro an
AutoExec macro in that document.
 
S

-Steve--Krause-

I don't mean to be stubborn but I don't know what you mean by AutoExec or
AutoExecute in your last two responses. I do notice that the help page for
the Startup switches says about the /mmacroname command:

" Start Word and then run a specific macro. The /m switch aslso prevents
Word from running any AutoExec macros."
But they don't index the word AutoExec and I don't see it mentioned in the
help for Macros. My only experience with AutoExex is in AutoExec.bat for
booting a computer.
 
B

Bob I

Something seems to be disabled so I built a work around. Create a Macro
in your Doc and then edit that Macro and Paste the following in place of
whats there.( I got frustrated too:) )

************************************

Sub AutoOpen()
'
' AutoOpen Macro
' Macro recorded 09/26/2003
'
Application.Run MacroName:="Project.NewMacros.Macro1"
End Sub


Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/26/2003
'
Selection.EndKey Unit:=wdStory
End Sub

**************************************************************
 

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