ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Canīt set focus on OleObjects ComboBox (https://www.excelbanter.com/excel-programming/378128-can%B4t-set-focus-oleobjects-combobox.html)

RCL

Canīt set focus on OleObjects ComboBox
 
Hi, I have inserted a ComboBox in my Excel sheet.

But I canīt set focus on it with this code:
ActiveSheet.OLEObjects("CBoxConc").object.SetFocus

Do you know how to set focus to a ComboBox inserted inside an Excel
sheet?

Thanks for the help !


Bob Phillips

Canīt set focus on OleObjects ComboBox
 
ActiveSheet.OLEObjects("CBoxConc").activate

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"RCL" wrote in message
ups.com...
Hi, I have inserted a ComboBox in my Excel sheet.

But I canīt set focus on it with this code:
ActiveSheet.OLEObjects("CBoxConc").object.SetFocus

Do you know how to set focus to a ComboBox inserted inside an Excel
sheet?

Thanks for the help !





All times are GMT +1. The time now is 11:21 AM.

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