• new to vb – simple question

    Author
    Topic
    #1768879

    I’m just learning some vbs code and I stuck. On a custom Outlook contact form, I have a check box that I want to enable / disable a text box filed.

    If Item.UserProperties(“WelcomeLetterSent”).Value = “False” then
    Item.UserProperties(“WelcomeSentDate”).enable = False
    end if
    But I get a “not supported error”. What’s going wrong? How do I enable / disable the text box in the vbs ?

    Thanks,
    Chris

    Viewing 1 reply thread
    Author
    Replies
    • #1781123

      Chris,

      I’m not up with Outlook flavour VB, but I would try using “enabled” rather than “enable”.

      The fact that the word “enable” begins with lower case is a useful clue, one you can often use in VBA.

    • #1781154

      I’m not up with OutLook VBS either, but I notice you quote the word false in the first line within double-quotes. I would have thought that you should omit the quotes as the word False is a number.

    Viewing 1 reply thread
    Reply To: new to vb – simple question

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

    Your information: