Group:  Microsoft Excel ยป microsoft.public.excel.templates
Thread: calender control

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

calender control
"rknight" <ronnieknight[ at ]copper.net> 22.09.2006 13:10:39
I have a calendar control on a worksheet (in a template file) and I
need the calendar to display today's date when the workbook is opend.

I've tried various forms of:
Private Sub Workbook_Open()
Sheet1 [Calendar1].Value = Now()
End Sub

and get various forms of error messages. Can someone please give me the
correct code or is there something I can set in the property window
without using VBA?

thanks
Ronnie

Re: calender control
Lynz <lynz[ at ]extra.co.invalid> 23.09.2006 10:54:08
rknight wrote:
[Quoted Text]
> I have a calendar control on a worksheet (in a template file) and I
> need the calendar to display today's date when the workbook is opend.
>
> I've tried various forms of:
> Private Sub Workbook_Open()
> Sheet1 [Calendar1].Value = Now()
> End Sub
>
> and get various forms of error messages. Can someone please give me the
> correct code or is there something I can set in the property window
> without using VBA?
>
> thanks
> Ronnie
>
You could try Sheet1[Calendar1].Value = Format(Now, "dd mmm yyyy")
or something similar
Cheers Lynz

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net