Results 1 to 1 of 1
2001-12-14, 18:54 #1
- Join Date
- Jan 2001
- Thanked 0 Times in 0 Posts
Outlook not fully closing when VBS script invoked (Outlook 2000 (SR-1) on
I am running Outlook 2000 (SR-1) on Windows 2000 with all COM add-ins deselected. I am not running WinFax.
I am trying to get an Outlook Custom form (written by Microsoft) to behave.
The form in question is "Questionnaire" downloaded from :
I have published it to my Personal Forms Library and it works as intended but with one BIG problem:
Once the recipient of the questionnaire sends back the questionaire to the sender, the recipient cannot close Outlook completely (the small window with the message "Please wait while Microsoft Outlook exits" remains on the screen). The only way to get rid of this is to kill it off using "End Task".
The problem seems to be in the VBS code for the cmdSend_Click() event (see below).
If anyone can help I would be very grateful.
Function Item_Open ()
Set MyInspector = Item.GetInspector
Set objPage = Item.GetInspector.ModifiedFormPages("Questionnaire ")
Set objControl = objPage.Controls("cmdSend")
objControl.Visible = False
set MyItem = Item.Forward
Recip = Item.SenderName
MyItem.To = Recip
MyItem.Subject = "RE: " & Item.Subject