ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to reference the contents of a list in a floating toolbar? (https://www.excelbanter.com/excel-programming/342095-how-reference-contents-list-floating-toolbar.html)

Alvin Wilson

How to reference the contents of a list in a floating toolbar?
 
I've created a floating toolbar with a dropdown list on it. When the user
clicks a selection on the dropdown list, a procedure is called. Within that
procedure, I can see the value of ListIndex for the list, but I can't figure
out how to reference the value or text or contents at the location pointed to
by ListIndex. I know how to do this in Access, but Excel seems to require a
different approach.

How do I reference the contents of a list in a floating toolbar, given that
I know the ListIndex of the selection?

TIA!

Tom Ogilvy

How to reference the contents of a list in a floating toolbar?
 
with Commandbars("custom1").controls("Drop1")
s = .List(.ListIndex)
End With
msgbox s
--
Regards,
Tom Ogilvy


"Alvin Wilson" wrote in message
...
I've created a floating toolbar with a dropdown list on it. When the user
clicks a selection on the dropdown list, a procedure is called. Within

that
procedure, I can see the value of ListIndex for the list, but I can't

figure
out how to reference the value or text or contents at the location pointed

to
by ListIndex. I know how to do this in Access, but Excel seems to require

a
different approach.

How do I reference the contents of a list in a floating toolbar, given

that
I know the ListIndex of the selection?

TIA!





All times are GMT +1. The time now is 09:02 AM.

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