Calendar Control 10.0?

G

Greg

I am using the CControl 10.0 for the first time and have a basic ? The calander is in a form with an ok button I am just testing to make sure that I am capturing the corredct date with this but it is not working. Any thought would be great thanks

Sub Calendar1_Click(
theDate = CDate(Calendar1

End Su

Sub cmbOK_Click(
MsgBox "The date selected" & theDat
End Sub
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?R3JlZw==?=,

VBA Userform or Word document (protected) form?

Where is the variable theDate declared? Please describe more exactly how it's "not working".
I am using the CControl 10.0 for the first time and have a basic ? The calander is in a form with an ok button I am just testing to make sure that I am capturing the corredct date with this but it is not working. Any thought would be great thanks.

Sub Calendar1_Click()
theDate = CDate(Calendar1)

End Sub

Sub cmbOK_Click()
MsgBox "The date selected" & theDate
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :)
 

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