Jump to content

Handle "New" document command click in Word2007


AlexYo

Recommended Posts

Hello

Can anyone help me with handle events when user click "New".

I need to trap this action and if some condition = true show Word 2007 "New document" dialog and if not do my action.

I try to create macro with name "FileNew" and it executed after user click "New" in Word, but then standard "New Document" dialog not shows up.

I try to call Dialog(wdDialogFileNew).show but it show old dialog that was used in Word 2003.

So I need find way to show NEW standard "New Document" dialog or handle click to command menu - "New"

Thanks

Link to comment
Share on other sites

  • 3 weeks later...

You need to REPURPOSE the New command buttons. Search on this. You'll have to assign the repurposed macro to the ribbon by customizing the ribbon. See pinned topic on how to modify the ribbon by me.

Can't help much more than that since I haven't had a need to repurpose commands but I believe that's what you're looking for and can be found by googling!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...