J
Jim Burke in Novi
Help! I'm an experienced vba programmer in access, and cannot for the life of
me figure out how to get simple events to trigger in word. All I want is for
a sub to run whenever a doc is opened. I tried Document_Open and
Document_New, I tried creating an AutoExec macro, but whenver I open a test
doc nothing happens. Can someone please tell what the secret is? I've wasted
much too much time on this seemingly ridiculously simple task!! Any help is
appreciated.
Note: I originally put a command button on the doc (via the control
toolbox), which would trigger it's event when the user clicked it. Simple
enough, you would think. That worked on first try, but whenever I closed and
reopened the doc the button no longer worked. After doing some research, it
seems like using the controls from the control toolbox is a no-no. I am
mystified by Word's VBA rules!
Jim B
me figure out how to get simple events to trigger in word. All I want is for
a sub to run whenever a doc is opened. I tried Document_Open and
Document_New, I tried creating an AutoExec macro, but whenver I open a test
doc nothing happens. Can someone please tell what the secret is? I've wasted
much too much time on this seemingly ridiculously simple task!! Any help is
appreciated.
Note: I originally put a command button on the doc (via the control
toolbox), which would trigger it's event when the user clicked it. Simple
enough, you would think. That worked on first try, but whenever I closed and
reopened the doc the button no longer worked. After doing some research, it
seems like using the controls from the control toolbox is a no-no. I am
mystified by Word's VBA rules!
Jim B