Template Dialog Opens On StartUp.....Macro modification Advise

G

Guest

I have been experimenting with Word macros to understand them. Could someone
advise me on the following questions.

Using the following macro opens the Word template dialog.
Sub AutoExec()
'
' AutoExec Macro to open the template Dialogue Box
'
Dialogs(wdDialogFileNew).Show

End Sub

Question 1
I have tried to modify the macro to open the dialog on a particular tab....
Can anyone modify the above macro code to demonstrate how I achieve
this..... everything I have attempted causes an error. I have searched the
net and my books for explanations unsuccessfully also.

Question 2
How do I incorporate the command line switches into the macor code...i.e. to
prevent the blank document opening.....so only the dialog opens?

Question 3
The open dialog command....wdDialogFileNew
Where will I get a list of the word commands as they are used in code....
Initially I was entering NewFileDialog.....then I tried FileNewDialog.....to
no joy.
Printing the list of commands / shortcuts from within word, lists the
commands but not ....as in the "wdDialogFileNew" example......

Many thanks in advance to any informative advise.
 
G

Guest

I understand now that the Word commands "as used in code" can be viewed using
the "Object Browser" ( View | Object Browser) within the VBE.

Can anyone help me with the other questions......
 

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