Macro for new macro?

K

kevs

I went to make a macro to create a new macro, so I wouldn't have to pull
down the menu etc each time I wanted to make a new macro.

But I couldn't finish it because the "create a new macro was gone", it only
said, end the macro.

Kevs
 
J

Jim Gordon

Hi Kevs,

From the View menu choose Toolbars > Visual Basic. There's a button on that
toolbar that you can click to record a new macro. It lets you name the
macro, specify whether to make the new macro part of the Word document or
always available in Normal. Click the button a second time and it stops the
recorder. Then click the Visual Basic Editor button to edit the macro.

You could check in the newsgroup
microsoft.public.word.vba.customization
to see whether someone has posted a macro that automates what I just
described. It would likely involve this word dialog wdDialogToolsMacroRecord

Hope this helps.

-Jim Gordon
Mac MVP

All responses should be made to this newsgroup within the same thread.
Thanks.

About Microsoft MVPs:
http://www.mvps.org/

Search for help with the free Google search Excel add-in:
<http://www.rondebruin.nl/Google.htm>
 
J

J.E. McGimpsey

Jim Gordon said:
You could check in the newsgroup
microsoft.public.word.vba.customization
to see whether someone has posted a macro that automates what I just
described. It would likely involve this word dialog wdDialogToolsMacroRecord

I did a quick check (without seeing anything) but from Help, I think
the recorder is off limits within a macro:

wdDialogToolsMacroRecord (This dialog box cannot be called from a
macro.)

However, if the object is simply to avoid using the menus, kevs can
assign the RecordMacro command a keystroke:

Tools/Customize/Keyboard and choose
Categories: Tools
Commands:ToolsRecordMacroStart

then assign a keyboard shortcut - no macro required.
 
K

kevs

I did a quick check (without seeing anything) but from Help, I think the
recorder is off limits within a macro:

wdDialogToolsMacroRecord (This dialog box cannot be called from a macro.)

However, if the object is simply to avoid using the menus, kevs can assign the
RecordMacro command a keystroke:

Tools/Customize/Keyboard and choose
Categories: Tools
Commands:ToolsRecordMacroStart

then assign a keyboard shortcut - no macro required.
Thanks JE
Worked great. Exactly what I wanted. Put nice blue symbol on the toolbar.
Kevs
 

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