Word 2000 vs Word 2003 VBA odd results

  • Thread starter Thread starter dworst
  • Start date Start date
D

dworst

I have created a Word form with buttons to update the date field and
open Outlook upon click. This form was created in Word 2003. The
buttons have VBA behind them to complete these tasks.

My problem is that when you open it with Word 2000 and click one of
the buttons it is picking up the vba code for one of the other buttons
in the table. For example, my date button is picking up my code for
Send Mail button.

I have never seen this before. Has anyone every had this occur? How
do I fix it to work with both versions?
 
I take it that you are using CommandButtons that are located on your form? If
so, the underlying code should match the CommandButton name... i.e.
CommandButton9 will correspond to the following event:

Sub CommandButton9()

End Sub

There are some issues with the use of UserForm CommandButtons, in which you
have to "Unload UserForm1" right at the beginning of the code execution in
Word 2000, otherwise things will continue to point to the UserForm in Word
2000 (but not in Word 2003). A macro to manipulate a graph event gave me
problems a few days ago (see the last post here-
http://www.emrupdate.com/forums/t/9106.aspx).

Cheers,
Al
 

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

Back
Top