fun with dates?

fun with dates?

Anonymous
Not applicable
229 Views
3 Replies
Message 1 of 4

fun with dates?

Anonymous
Not applicable
im trin to fill a combobox with date values...the kicker is i only dates
that are "fridays"

any suggestions?

Jaime
0 Likes
230 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Dim TGIF As Date
Dim iCount As Integer

TGIF = Date
TGIF = TGIF Xor vbFriday

For iCount = 1 To 10
TGIF = TGIF + 7
MsgBox (Format(TGIF, "dddd, mm/dd/yy"))
Next
0 Likes
Message 3 of 4

Anonymous
Not applicable
Perfect! thanks

Jaime

"Gary McMaster" wrote in message
news:BDD0DA1899FC0F7F01F7B2FCD710079C@in.WebX.maYIadrTaRb...
> Dim TGIF As Date
> Dim iCount As Integer
>
> TGIF = Date
> TGIF = TGIF Xor vbFriday
>
> For iCount = 1 To 10
> TGIF = TGIF + 7
> MsgBox (Format(TGIF, "dddd, mm/dd/yy"))
> Next
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Your welcome.
0 Likes