I'm trying to make a macro button by code for ms-word2007 & ms-word2003 from one template. When the button is press it starts a userform.


I got something like this in minde:


Private Sub Document_New()


If active.document = word2003

Add menu button

Bla bla

Els if active.document =word2007

Add Iribbon button
...