ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   determine row where activex control is placed (https://www.excelbanter.com/excel-programming/381805-determine-row-where-activex-control-placed.html)

jigs d

determine row where activex control is placed
 
hi all,

i m creating dynamic list boxes in excel sheet. now on the selection of the
item of the list box i want to pouplate cells in the same row.
how can i do it?

jigs D

NickHK

determine row where activex control is placed
 
Here's one way:

Dim LBox As OLEObject

Set LBox = ActiveSheet.OLEObjects.Add(ClassType:="Forms.ListB ox.1",
Link:=False, _
DisplayAsIcon:=False, Left:=278.25, Top:=283.5, Width:=117, Height:=
33)

MsgBox LBox.TopLeftCell.Address

NickHK

"jigs d" wrote in message
...
hi all,

i m creating dynamic list boxes in excel sheet. now on the selection of

the
item of the list box i want to pouplate cells in the same row.
how can i do it?

jigs D





All times are GMT +1. The time now is 08:03 AM.

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