austin350s10
Active Member
- Joined
- Jul 30, 2010
- Messages
- 321
How come this:
works fine. Meaning it fills a dropdown list with 45 dates, starting with the oldest.
But, switch it a bit:
and it produces a blank list??? Shouldn't this list 45 dates starting the newest { now() }?
What am I missing here?
Code:
Private Sub UserForm_Initialize()
For d = Now() - 45 To Now()
listDate.AddItem Format(d, "mm/dd/yyyy")
Next d
End Sub
works fine. Meaning it fills a dropdown list with 45 dates, starting with the oldest.
But, switch it a bit:
Code:
Private Sub UserForm_Initialize()
For d = Now() To Now() - 45 '<====== switched the order
listDate.AddItem Format(d, "mm/dd/yyyy")
Next d
End Sub
and it produces a blank list??? Shouldn't this list 45 dates starting the newest { now() }?
What am I missing here?