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: 64
Default Combobox

Hello all,

Here is my problem for this morning...

i have a piece of code (see below) that will collect all
names where there is a blank for there appointment time.

Problem 1)
== The collection only contains 3 names, although there
are definatly 5 records in my spreadsheet with blank times
(2 of them appear before a record with a time)
** How do i get it to display all entries with no time??

Problem 2)
== The collection only shows the first name (column B)
** How do i get the collection to have the first name and
the surname (column D)??

-----------------CODE-----------------------------
Set doll = New Collection
Set sng = Range("A1")
On Error Resume Next
For k = 2 To Cells(Rows.Count, "A").End(xlUp).Row
If Cells(k, "AX").Value = "" Then
doll.Add Cells(k, "B").Value, Cells
(k, "B").Text
End If
Next k

With timetable.ComboBox2
.AddItem ("")
For Each w In doll
.AddItem CStr(w)
Next w
End With
--------------------CODE-----------------------------

Thank you,

Robert Couchman
)
 
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
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
combobox into another combobox girlie New Users to Excel 1 September 26th 06 10:31 AM
COMBOBOX smiley New Users to Excel 1 October 12th 05 02:01 PM
combobox value cg Excel Programming 5 September 28th 03 07:26 PM
ComboBox Darrin Henry Excel Programming 0 September 15th 03 06:05 PM


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

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

About Us

"It's about Microsoft Excel"