[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1449
  • Last Modified:

easy vbscript userform question

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?
0
acdagirl
Asked:
acdagirl
  • 2
  • 2
1 Solution
 
leonstrykerCommented:
On Click event add code to check the item selected and then set the Text property to "", if it is the one you want.

Leon
0
 
acdagirlAuthor Commented:
where do i set the click event? I don't see it in the properties window? what is the syntax?
0
 
leonstrykerCommented:
Double click on the listbox, on the form while in design mode.
0
 
acdagirlAuthor Commented:
wow - that was easy :-)

Thanks!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now