Quick Macro Question

M

MAB

I don't have any coding experience, and my macros are mostly created using
the record function, however, I am unable to record a macro for something
fairly simple (or at least I would think it's fairly simple).

I would like a macro to do the following: Insert | Reference | Cross
Reference. That's it; just for the cross reference dialg box to open. I'll
manually select what I want at that point.

Like I said, I tried recording these steps, but nothing recorded.

I'm using Word 2003.

Thanks in advance.
 
C

Charles Kenyon

Generally the macro recorder records (sort of) results, rather than process.
You can't use it to open dialogs.

What you need is:
Application.Dialogs(wdDialogInsertCrossReference).Show


--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
U

Ugnz

My question is, how do you find out what the dialog box is called. I've seen
this question twice now, for different dialog boxes, and I don't want to have
to ask every time I want to write a macro for a new dialog box.

I've tried, and unfortunately wild guessing doesn't do the trick :)
 

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