vbscript - Populating a TextBox based on selection in ComboBox -


All! I will try to get as detailed as possible to describe my plight. I have a little background knowledge in Visual Basic, but no one is actually in VBA or VBscript in Outlook 2010. I am working with Outlook 2010. I have created a custom form (this is my first time). I have a combo box called combobox 1 and a text box called text box 1. I am trying to auto-populate TextBox1 with a number based on the selection made from the combo box 1 (i. Selects and populates with textbox 1 124). I tried to use this code in the Visual Basic Editor (VBA version 7.0):

  sub pop box () if combobox 1 = "value 1" then text box 1 = "124 "End if end sub   

My question is what am I doing wrong? Am I using VBSScript editor, or is I using VBA to do the right thing? Am I even asking what is possible? Thanks to all of you!

Was a great one this morning! I found a solution to my problem if anyone has this problem in the future, here is where I came with:

  sub item - CustomPropertyChange (Biwael Aircraft) set myInspector = Item .GetInspector Set FormPage = myInspector.ModifiedFormPages ("Form") Set Aircraft = FormPage. Set Control ("Aircraft") Partnumber = Forms page. Select the control ("Partnumber") case aircraft. Value Case "Value 1" Partnumber.values ​​= "124" Case "Value2" Partnumber.vail = "125" Select End End     

Comments