Based on an event, how to change the rowsource property of a combobox
I have a userform with several controls (optionbuttons, comboxes etc).
When the userform initializes one of the comboboxes (say Combo1) picks up values from the range Sheet1!O1:O26, and one of the option button has the focus.
What I want to do is if I select
another optionbutton, the rowsource property of Combo1 should change to Sheet1!P1:P23.
Solutions to the Problem Based on an event, how to change the rowsource property of a combobox
You don't need a loop.
The following will change the Rowsource.
Note that it is enclosed in quotes.
UserForm1.ComboBox2.RowSource = "Sheet1!P1:P23"
And if the code is in Sub Private Sub UserForm_Initialize() then you don't need to specify the form name.
ComboBox2.RowSource = "Sheet1!P1:P23"
Also, for any code that is in the form's modules, you can also use Me in lieu of the form's name.
Me.ComboBox2.RowSource = "Sheet1!P1:P23"
To install drivers and other optional updates
- To install optional updates, you need to review and then select them from the list of updates that Windows finds for your computer. Optional updates are not installed automatically.
- Open Windows Update by clicking the Start button Picture of the Start button, clicking All Programs, and then clicking Windows Update.
- In the left pane, click Check for updates, and then wait while Windows looks for the latest updates for your computer.
- If any updates are found, click View available updates.
- Select the optional updates that you want, and then click Install. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Recommended Method to Fix the Problem: Based on an event, how to change the rowsource property of a combobox:
How to Fix Based on an event, how to change the rowsource property of a combobox with SmartPCFixer?
1. You can Download Error Fixer here. Install it on your computer. When you open it, it will perform a scan.
2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.
3. When the Fixing part is done, your computer has been speeded up and the errors have been fixed
Related: Autologon and AutoLogonCount Parameters for Windows Unattended Setup Error Fixer,How To Resolve Cyberbit Unicode Font Does Not Return Correct Charset Problem,How To Use the Office Profile Wizard to Create an OPS File in Office XP Error Fixer,Error Sys Msg 22 Invalid period, please reenter. in MC in 4.x Solution,Why am I Getting a Upgrades from 3.01 to 3.60 or 3.01 to 3.70 Involving Serial Numbers and Revaluations Are Overstating the Valuation Entries on the Purchases Error?,How Can I Fix - Error 16389?,How to Fix - Internetopen?,Mcafee Virus Scan Online,How Can I Fix - Qos Packet Scheduler Failed?,Solution to Problem: Windows 2000 Boot Repair,How to Fix ashoutxt.dll Not Found Error,Best Method to Fix cxcore096.dll Error,Where can I Find dsauth.dll File,msde.dll Corrupted - How to Resolve,psizewizres.dll Corrupted - How to Fix,How to Download ASUS XGI Compatible Super VGA Driver Package Version R1.13.00/Driver Version 126.96.36.1990 for Windows XP 32/64 bit(WHQL),Windows Server 2003 32/64 bit(WHQL),Windows Vista 32/64 bit(WHQL),Windows Server 2008 32/64 bit(WHQL),Windows 7 32/64 bit(WHQL),Window,Download NeoMagic® MagicMedia 256AVP Display Adapter Driver,Download NVIDIA RIVA TNT2 Model 64,How to Update Realtek ALC850 AC'97 Driver V188.8.131.5200 WHQL for Windows 2000/XP/2003 & 64bit XP/2003.,How to Update Realtek LAN V6.203.0214.2008,Microsoft.PowerShell.GraphicalHost.dll Error Code Fixer
,Fix Error Code Netapi32 (4).dll
,Qa_auth_client.dll Error Code Fixer
,Fix Error Code Tdc (3).ocx
,Vwipxspx.dll Error Code Fixer
,Way to Download Toshiba Qosmio X505-Q832 Intel Wireless LAN Driver v.184.108.40.206.0.s64_wCAT,Download Toshiba Satellite C650D-ST6N02 Assist Utility v.220.127.116.11 driver,How Can You Update & Download Toshiba Satellite L645-S4026RD Value Added Package v.1.6.0130.640202 driver,Method to Download Toshiba Satellite L755-S9511D Assist Utility v.18.104.22.168 driver,Method to Download Toshiba Satellite P875-S7200 Fingerprint Utility v.2.0.0001.000408 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17
Read More: Troubleshooting:Black Screen Acer Extensa 5235 Error,[Anwsered] BEX Error (Explorer.exe, Event ID: 1000),[Solution] Black screen after Windows 8 Install,[Solved] BEX solution needed,Fast Solution to Problem: be able to show number that is negative in red