Reporting what calls a Contact form script

  • Thread starter Thread starter Chris Kinata
  • Start date Start date
C

Chris Kinata

Hi all,

I had never played with form scripting before, but
edited a custom contact form the other day, clicked
the View Code button on the Form Design toolbar,
and entered the code

msgbox "Hello, world!"

No Sub..End Sub, just that statement.
The interesting thing is that the msgbox appears
at odd moments, even when I'm not in my Contacts
folder, addressing an email, etc.

Wondering what's executing the script...what code
could I use to report the event that triggered the
script and/or what's calling it?

Regards,
Chris
 
The VBScript engine is executing the script, but because you aren't using any event handler, it's pretty hard to know what's going to happen. Aside from module-level declarations, all your code needs to go into event handlers. Start with the ones on the Script | Event Handler dialog.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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