ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Combo Box Value (https://www.excelbanter.com/excel-programming/276345-combo-box-value.html)

Pierre Leclerc[_2_]

Combo Box Value
 
Hi, All

I have a combo box on a sheet and I want to change its value
programmatically. I tried cbxStore.Value=33 and many other ways
but.....

Thanks in advance
Pierre Leclerc
http://www.excel-vba.com


patrick molloy

Combo Box Value
 
I assume thsi is the ActiveX combo - ie from the
Controls Toolbox?

If so, just prefereance the object name


Sheet1.cbxStore.Value=33

or so select the 6th item...
Sheet1.cbxStore.ListIndex = 5


HTH
Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
Hi, All

I have a combo box on a sheet and I want to change its

value
programmatically. I tried cbxStore.Value=33 and many

other ways
but.....

Thanks in advance
Pierre Leclerc
http://www.excel-vba.com

.



All times are GMT +1. The time now is 06:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com