easy vbscript userform question

Posted on 2007-07-30
Last Modified: 2012-06-27
I have a userform in a word doc that includes a listbox and a textbox. I want to be able to clear the textbox if the user selects a particular item in the listbox. How do I do this?
Question by:acdagirl
    LVL 29

    Accepted Solution

    On Click event add code to check the item selected and then set the Text property to "", if it is the one you want.


    Author Comment

    where do i set the click event? I don't see it in the properties window? what is the syntax?
    LVL 29

    Expert Comment

    Double click on the listbox, on the form while in design mode.

    Author Comment

    wow - that was easy :-)


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
    Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  ( Here (http…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now