Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default First Question

Hello,

here is the first question....

before i open up this form i would like the data for
combobox1 to look through spreadsheet in column "AX" and
display a list of any dates that appear in that column
(but only once if there is a date that appears more than
once)
then it will display the userform.

ANY HELP??

Thank you,

Robert Couchman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default First Question

Robert,

Try something like the following code:

Dim Rng As Range
Dim V As Variant
Dim Coll As Collection
Set Coll = New Collection
Set Rng = Range("AX1")
On Error Resume Next
Do Until Rng.Value = ""
Coll.Add Rng.Text, Rng.Text
Set Rng = Rng(2, 1)
Loop
With UserForm1.ComboBox1
For Each V In Coll
.AddItem V
Next V
.ListIndex = 0
End With
UserForm1.Show


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Robert Couchman" wrote in message
...
Hello,

here is the first question....

before i open up this form i would like the data for
combobox1 to look through spreadsheet in column "AX" and
display a list of any dates that appear in that column
(but only once if there is a date that appears more than
once)
then it will display the userform.

ANY HELP??

Thank you,

Robert Couchman



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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Have a Big Question Art[_2_] Excel Discussion (Misc queries) 2 February 20th 07 10:04 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


All times are GMT +1. The time now is 03:21 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"