Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
change controlsource for textbox depending on combobox selection
Hi, I have a userform with 3 cascading comboboxes, and a textbox. I need the
controlsource of the textbox to change depending upon the selection in combobox3. I am looking for the code. I have in mind something like: If combobox3.value = "wages" then textbox1.controlsource = sheet3, A1 etc. but cant get it to work, also tried If TextBox1.Value = w Then TextBox1.ControlSource = Worksheets("main").Range("A1") If TextBox1.Value = x Then TextBox1.ControlSource = Worksheets("main").Range("b1") Can anyone help please? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
ReadOnly TextBox from ControlSource | Excel Programming | |||
TextBox ControlSource | Excel Programming | |||
A Simply ComboBox Selection returns value to TextBox | Excel Programming | |||
Userform: Textbox changing with selection in combobox (list) | Excel Programming |