Looping between two dates in a column...

chazrab

Well-known Member
Joined
Oct 21, 2006
Messages
750
Can somebody help me set up a Do Loop in VBA correctly to select specific dates in a date range and list them in a different area of the sheet?

As an example, it would loop through say, cOL C dates starting with 2/1/2009 and ending with 2/28/2009, and find all rows which are between two specific dates within this range?

Userform: TextBox1.value = 2/5/2009 TextBox2.value = 2/19/2009

I keep getting an endless loop and I have to CTRL ALT DEL to unlock my computer so something must be wrong with the structure of my Do loop.

Thanks for anyone's help.

CR
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,196,409
Messages
6,015,106
Members
441,870
Latest member
kojack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top