Results 1 to 3 of 3
  1. #1
    ckgoat
    Guest

    new to vb - simple question

    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

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: new to vb - simple question

    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.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: new to vb - simple question

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •