In Word, Programmatically Open New Document Dialog

Posted by Jacob Adams on Stack Overflow See other posts from Stack Overflow or by Jacob Adams
Published on 2010-04-09T22:27:34Z Indexed on 2010/04/09 22:33 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

I am looking for a way to programatically open the "New Document" dialog in Word 2007. It is the same one you get when you select File->New . You can also open it using the FileNew macro or the "New..." menu command. However, I have been unable to find a way to do this programmatically.

I have tried:

Application.Run MacroName:="FileNew"

and

Dialogs(wdDialogFileNew).Show

and

CommandBars.FindControl(ID:=5746).Execute

but both of these open the old dialog, not the new one that word 2007 uses.

© Stack Overflow or respective owner

Related posts about vsto

Related posts about vba