Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have a List Box to which I have assigned a macro. Can I do some sort of loop that will run through all entries in the list box running the macro as it goes? Many thanks, Al. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code adds items and then displays the items
Private Sub ListBox1_Click() 'add number to list box For i = 1 To 10 ListBox1.AddItem i Next i ListBoxCount = ListBox1.ListCount For i = 1 To ListBoxCount MsgBox (ListBox1.List(i)) Next i End Sub "Alpur" wrote: Hi All, I have a List Box to which I have assigned a macro. Can I do some sort of loop that will run through all entries in the list box running the macro as it goes? Many thanks, Al. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Create a macro from drop down list (Validation List) in excel | Excel Programming | |||
delete a macro that isn't in macro list | Excel Discussion (Misc queries) | |||
Display a macro at top of macro list? | Excel Programming | |||
How to create a macro that compares a list to another list | New Users to Excel | |||
Show Macro list (tools-macro-macros) | Excel Programming |