enter key not working when creating an envelope

H

Helen

I'm using the enter key macro that was provided from
microsoft's site:

http://support.microsoft.com/default.aspx?scid=kb;en-
us;211219

I put the macro in the normal.dot file because I have
thousands of templates that need this macro. I'm in a
blank document and I click on envelopes and labels. As
I'm typing the address I press the enter key to move to
the next line and nothing happens. Why doesn't the enter
key work when I try to create an envelope? Does the enter
key macro have to be modified? Thanks in advance.
 
C

Cindy Meister -WordMVP-

Hi Helen,
Why doesn't the enter
key work when I try to create an envelope?
Because it's not in a place where it can "communicate" with
the macro. So it remains disabled.

IF you press Alt+013 (on the numeric keypad) do you get a
new line?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
H

Helen

Thank you Cindy it worked!! BUT...how can I reword my
enter key macro so the users don't have to use Alt+013?
 
C

Cindy Meister -WordMVP-

Hi Helen,
Thank you Cindy it worked!! BUT...how can I reword my
enter key macro so the users don't have to use Alt+013?
You can't, not as long as the Enter key is remapped to NOT
put in a new line.

Or, yes, you'd have to modify that EnterKey macro so that
it remaps back to the default behavior when you use this
(and perhaps other) commands.

I don't recall exactly how that KB article macro is built,
but I'd make sure the mapping part to and away from
inserting a new paragraph mark is in a separate procedure.
Then it's easy enough to call the procedure from other
procedures. Name a procedure ToolsCreateEnvelope, for
example, call the routine to remap the Enter key if
required, then Dialogs(wdDialogToolsCreateEnvelope).Show,
then call the procedure to remap the enter key back, if
required.

This can get rather complicated, if you don't have much
programming background?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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