Find Date cell using Calendar Control

M

Mik

I have a list of dates (in sequence) in cells A3:A100.
A calendar control inserted into my worksheet (not via a userform),
currently displays the chosen date in cell A1.

This works fine, however....

When the date is chosen from the calendar control, I want to select /
goto the corresponding date within cells A3:A100.

How can this be done?

For info, I'm using Calendar Control 11.0, and Excel 2007 and 2010.
 
A

Auric__

Mik said:
I have a list of dates (in sequence) in cells A3:A100.
A calendar control inserted into my worksheet (not via a userform),
currently displays the chosen date in cell A1.

This works fine, however....

When the date is chosen from the calendar control, I want to select /
goto the corresponding date within cells A3:A100.

How can this be done?

For info, I'm using Calendar Control 11.0, and Excel 2007 and 2010.

Something like this, perhaps?

For ro = 3 To 100
If CDate(Cells(ro, 1).Value) = Calendar1.Value Then
Cells(ro, 1).Select
Exit For
End If
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top