What is "assign macro to"

G

George

Am using WordXP. Want to create simpled, recorded macros

1) In the macro recorder, what are the two large buttons for:
"Assign macro to" [Toolbars] [Keyboard]

2) What happens if I don't select either one?

Thanks
 
S

Sonny Maou

George said:
Am using WordXP. Want to create simpled, recorded macros

1) In the macro recorder, what are the two large buttons for:
"Assign macro to" [Toolbars] [Keyboard]

2) What happens if I don't select either one?

Then it doesn't get assigned to a keystroke or toolbar button. No
biggie. You'd have to then run it by clicking "Tools>Macros..." or
something like that.

I like to assign one-off throw-away macros to Alt+Z...
 
G

George

Thanks Sonny,

Just a brief add-on question, if a macro is assigned to a toolbar, would
that mean that it *adds* a choice under an existing menu item? For
instance, could I put a macro called "Zoom to 90%" under "View" so I could
click View > Zoom to 90%?

Also, is there any way to create a one-touch like the way function keys
work, instead of Alt-Z or Alt-V, etc.

Thanks
 
S

Sonny Maou

George said:
Thanks Sonny,

Just a brief add-on question, if a macro is assigned to a toolbar, would
that mean that it *adds* a choice under an existing menu item? For
instance, could I put a macro called "Zoom to 90%" under "View" so I could
click View > Zoom to 90%?

You could, I just don't know the exact procedure. I rarely do that manually.
Also, is there any way to create a one-touch like the way function keys
work, instead of Alt-Z or Alt-V, etc.

Maybe programmatically via VBA... let's see what the MPVs say. ;)
 
J

Jezebel

George said:
Thanks Sonny,

Just a brief add-on question, if a macro is assigned to a toolbar, would
that mean that it *adds* a choice under an existing menu item? For
instance, could I put a macro called "Zoom to 90%" under "View" so I could
click View > Zoom to 90%?

For Word's purposes, menu options and toolbar buttons are the same thing. To
put a macro on the View menu, right click any toolbar and click customise.
Select the macro, drag it to where you want.

Also, is there any way to create a one-touch like the way function keys
work, instead of Alt-Z or Alt-V, etc.

That's precisely what 'Assign to keyboard' does.
 
M

Mark Tangard

Hi George,

Clicking 'Toolbar' in the macro-assigner dialog is just a shortcut to
the Tools> Customize dialog, from which you can drag your macro to a
toolbar or menu and there recaption, recolor, etc., the resulting icon
or menu item. It doesn't add anything automatically. While it may seem
like a fabulous convenience, you may find it less useful as time goes
on, since, as you get deeper into VBA, you tend to use recorded macros
only for experimentation or memory-jogs, not for things you'll want on
your menus & toolbars; and at that stage, even when you do record, you
usually want to get right to the coding without a pause for naming or
toolbarizing.

Re one-touch: There's a way, but it's quite involved; you use the
KeyBindings object -- a very strange corner of VBA, if ya ask me -- to
assign the macro to an ordinary key. Of course it *disables* that key
from its normal action. The only keys you can commandeer for that
easily are the function keys. (I do miss the ability to easily write
code that uses one-touch *responses* to prompts, as in WordPerfect.)
 

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