ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set default date on calendar control (https://www.excelbanter.com/excel-programming/415209-set-default-date-calendar-control.html)

Stephen Lloyd[_2_]

Set default date on calendar control
 
I use the Microsoft Calendar Control 11.0 userform in a macro. The calendar
defaults the selected date to the date that the macro was created. What
property controls this? I'd like to set it to the current date.

theSquirrel

Set default date on calendar control
 
On Aug 5, 2:38*pm, Stephen Lloyd
wrote:
I use the Microsoft Calendar Control 11.0 userform in a macro. *The calendar
defaults the selected date to the date that the macro was created. *What
property controls this? *I'd like to set it to the current date.


the property you are looking for is 'Value', as I recall, you can set
it like this...
me.Calendar1.value = now

theSquirrel

Stephen Lloyd[_2_]

Set default date on calendar control
 
Thank you sir, I'll get it working when i get into the office.

"theSquirrel" wrote:

On Aug 5, 2:38 pm, Stephen Lloyd
wrote:
I use the Microsoft Calendar Control 11.0 userform in a macro. The calendar
defaults the selected date to the date that the macro was created. What
property controls this? I'd like to set it to the current date.


the property you are looking for is 'Value', as I recall, you can set
it like this...
me.Calendar1.value = now

theSquirrel



All times are GMT +1. The time now is 11:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com