Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble getting a text box to auto fill from a choice made from a
combo box. Combo Box Name is Address_21 Text Box Name is City_1 My code is as follows: 'Auto Fill CES Spec Written Office Private Sub ShowCity_1() Dim Address_21 As Variant Dim City_1 As Variant If UserForm1.Address_21 = "2306 Long Green Court" Then UserForm1.City_1 = Valrico If UserForm1.Address_21 = "3440 Oakcliff Road" Then UserForm1.City_1 = Atlanta If UserForm1.Address_21 = "7015 East 14th Aveneue" Then UserForm1.City_1 = Tampa If UserForm1.Address_21 = "3890 Oakcliff Industrial Court" Then UserForm1.City_1 = Atlanta If UserForm1.Address_21 = "1800 Taylor Drive" Then UserForm1.City_1 = Gastonia End Sub What did i do wrong or miss? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto fill Cells with text | Excel Worksheet Functions | |||
Auto fill of specific text. | Excel Discussion (Misc queries) | |||
auto fill text | Excel Worksheet Functions | |||
How to auto-fill text based on text in another cell | Excel Discussion (Misc queries) | |||
HOW CAN I AUTO FILL A CELL WITH TEXT FROM ANOTHER WORKSHEET TEXT . | Excel Worksheet Functions |