PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
2 VBScript subroutines don't work together
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
2 VBScript subroutines don't work together
![]() |
2 VBScript subroutines don't work together |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I am writing some very basic code in the VB Script window
of an Outlook Message Form. I have a number of combi boxes and I want the possible values of one combi-box to be dependent on the value chosen in another. I have written 2 subroutines which when entered in the Script window individually work perfectly. However, when I have both subroutines in the script window, only the subroutine that is written second in the Script window seems to work when I run the form. Each subroutine applies to different combi- boxes - i.e. there's no items on the form that are common to both subroutines. Each subroutine begins with: Sub Item_CustomPropertyChange(ByVal NameofCombiBoxItAppliesTo) Set objPage = Item.GetInspector.ModifiedFormPages ("Message") Any help? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
In article <074c01c48b58$50dd4d80$a501280a@phx.gbl>, Barry wrote:
> Any help? > You want to have only one routine and use the Case construct to separate the two sections of code. Hollis D. Paul [MVP - Outlook] Hollis@outhousebythesound.com Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2600 http://search.support.microsoft.com...D=TECH&LN=EN-US Mukilteo, WA USA |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

