Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default populate listbox?

I want to insert values from cells A1:A15 in listbox. A2,a5 and a10 are
empty and I don't want dem in my listbox. So how to populate listbox
without empty cells?

  #2   Report Post  
Posted to microsoft.public.excel.programming
KL KL is offline
external usenet poster
 
Posts: 201
Default populate listbox?

Hi Alen32,

Try this:

Private Sub UserForm_Initialize()
For Each c In ActiveSheet.[A1:A15]
If c < "" Then ComboBox1.AddItem c
Next c
End Sub

Regards,
KL



"Alen32" wrote in message
lkaboutsoftware.com...
I want to insert values from cells A1:A15 in listbox. A2,a5 and a10 are
empty and I don't want dem in my listbox. So how to populate listbox
without empty cells?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default populate listbox?

thanks!!

Reply
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
Using a VBA listbox to populate a worksheet Paulc Excel Programming 1 January 28th 05 01:29 PM
Populate Listbox with File Name Only Justin[_9_] Excel Programming 5 August 27th 04 03:54 PM
populate listbox JSnader Excel Programming 2 December 6th 03 02:43 PM
Populate listBox Hamster Excel Programming 1 September 17th 03 01:14 PM
ListBox Populate Rod Taylor Excel Programming 3 July 22nd 03 12:11 AM


All times are GMT +1. The time now is 01:30 AM.

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"