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

Last question;

I have two comboboxes. The first has a rowsource from a named range of
dates. I want to populate the second rowsource when a date is chosen in the
first one. I only want to show dates greater than the first in the second.
I am assuming I want to use a for each to compare values, but I am stumped:

Dim CheckDate as ?

Combobox2.rowsource=""

For Each CheckDate in (namedrange)
if CheckDate Combobox1.value then
combobox2.additem CheckDate
end if
next CheckDate


Any suggestions? Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Compare rowsources

Dim CheckDate as Range

Combobox2.rowsource=""
Combobox2.Clear
For Each CheckDate in Range("DateRange")
If CheckDate.Value2 cLng(Combobox1.value) then
combobox2.additem format(CheckDate.Value,"m/d/yyyy")
end if
next CheckDate

--
Regards,
Tom Ogilvy

"King" wrote in message
news:3EBib.755712$Ho3.193248@sccrnsc03...
Last question;

I have two comboboxes. The first has a rowsource from a named range of
dates. I want to populate the second rowsource when a date is chosen in

the
first one. I only want to show dates greater than the first in the

second.
I am assuming I want to use a for each to compare values, but I am

stumped:

Dim CheckDate as ?

Combobox2.rowsource=""

For Each CheckDate in (namedrange)
if CheckDate Combobox1.value then
combobox2.additem CheckDate
end if
next CheckDate


Any suggestions? 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
COMPARE Add-in pwrichcreek Excel Discussion (Misc queries) 1 August 20th 08 08:58 PM
Compare Srenfro Excel Worksheet Functions 1 March 11th 08 10:02 PM
Compare CribbsStyle Excel Worksheet Functions 8 November 4th 06 10:15 PM
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
compare data from one column with another and compare result to yet another Matt Williamson[_3_] Excel Programming 1 September 25th 03 08:54 PM


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

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"