LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Assign variable ListBox names

I have a user form with three list boxes. Is there a "For" statement
(similar to below) that will loop through each of the three list boxes
and execute a "with" command?

For x = 1 to 3
With UserForm1.ListBox(x)
.additem = A
.additem = B
End With
next x

Any help is greatly appreciated, thank you!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign Sub Name to a Variable Alan Excel Programming 3 October 10th 06 04:20 PM
Assign value to variable rroach Excel Discussion (Misc queries) 1 July 13th 05 05:24 AM
Assign a variable from a Listbox selection. Jako[_20_] Excel Programming 1 June 13th 04 10:25 AM
Assign a variable from a Listbox selection. Leo Heuser[_3_] Excel Programming 0 June 13th 04 09:03 AM
Assign a variable from a Listbox selection. Jako[_21_] Excel Programming 0 June 13th 04 08:29 AM


All times are GMT +1. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"