scripting in a custom form (Outlook 2003)

  • Thread starter Thread starter Jeremy P
  • Start date Start date
J

Jeremy P

First off, I'm not a programmer.

I am trying to add a very basic item on a custom outlook for. Just a
text box that populates with a number (static number) when a user
clicks a command button.

I have a custom form with the added text box(named tb1) and command
button (named cb1)

Using the script editor in outlook 2003 (from the form design mode) i
enter :


sub private cb1_click()
tb1.text = "7"
end sub

I then publish the form to the public folder (FYI - not using cached
mode exchange or favorites). when i try to access the form I get an
error that "to protect against malicous code, some items have not been
loaded.." and the textbox and button are not loaded.

I've changed all my security levels to as low as they go (in IE,
macros in outlook etc)

any ideas???

thanks
 
See http://www.slipstick.com/dev/code/propsyntax.htm#unbound for details on the proper syntax for working with controls on Outlook forms.

Also, check your public folder scripting setting in Tools | Options | Advanced Options.

FYI, there is a separate newsgroup for Outlook forms issues -- microsoft.public.outlook.program_forms.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top