• Outlook not fully closing when VBS script invoked (Outlook 2000 (SR-1) on

    Home » Forums » AskWoody support » Productivity software by function » MS Outlook and email programs » Outlook not fully closing when VBS script invoked (Outlook 2000 (SR-1) on

    Author
    Topic
    #364189

    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 :
    http://www.microsoft.com/education/?ID=Questionnaire

    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.

    Jeremy Morton

    Function Item_Open ()
    Set MyInspector = Item.GetInspector
    MyInspector.ShowFormPage(“Questionnaire”)
    End Function

    Sub cmdSend_Click()
    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
    MyItem.Send
    Item.Delete
    End sub

    Reply To: Outlook not fully closing when VBS script invoked (Outlook 2000 (SR-1) on

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: