ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting values in sheet list box using vba (https://www.excelbanter.com/excel-programming/416353-selecting-values-sheet-list-box-using-vba.html)

Raj[_2_]

Selecting values in sheet list box using vba
 
Hi,

A worksheet has several list boxes (values in drop down lists). Is
there a way to select values in these list boxes through vba code?


Regards,
Raj

jamesdavey

Selecting values in sheet list box using vba
 
if they are in a drop down (as in data - validation - list) then in
code you just set the cell value...

Range("A1").Value = "x" - as long as "x" is a value in your list...


Raj[_2_]

Selecting values in sheet list box using vba
 
On Sep 1, 12:41*am, jamesdavey wrote:
if they are in a drop down (as in data - validation - list) then in
code you just set the cell value...

Range("A1").Value = "x" - as long as "x" is a value in your list...


Hi,

The values are not in cells (using data validations). They are in list
box controls placed in the sheet.

Thanks and Regards,
Raj


All times are GMT +1. The time now is 05:12 PM.

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