Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default vba calendar

I am using a form that has a calendar in it. Does anyone know how to get it
to show todays date when the form opens verses the date i built the form? Not
a huge problem just very annoying.
--
Thank you,

Jennifer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba calendar

I'm assuming by "form" you mean UserForm and by "calendar" you mean the
Calendar Control. Further assuming your Calendar Control is named Calendar1,
put the following code in the UserForm's code window...

Private Sub UserForm_Initialize()
Calendar1.Value = Date
End Sub

Obviously, if you already have an existing UserForm_Initialize event
procedure in your project, simply add the

Calendar1.Value = Date

statement to it instead.

Rick


"Jennifer" wrote in message
...
I am using a form that has a calendar in it. Does anyone know how to get it
to show todays date when the form opens verses the date i built the form?
Not
a huge problem just very annoying.
--
Thank you,

Jennifer


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find free sharware to include calendar pop or use calendar in cell ednc Excel Discussion (Misc queries) 2 April 14th 08 05:05 PM
how do i export excel calendar info to outlook calendar? Maggie Excel Discussion (Misc queries) 1 December 31st 07 10:27 PM
monthview calendar question/ want the calendar to display weekdays only.. [email protected] Excel Programming 0 August 26th 07 09:25 PM
Modify Yearly Calendar to Monthly Calendar Excel 2000? James Cooper Excel Programming 13 July 13th 06 11:46 PM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM


All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"