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

I have created a calendar control on a form in Excel and everything works
fine except for one thing. When the user selects a different month from the
drop down, I want the day to stay the same as the previous day that was
selected. I have tried several different methods, but the day remains empty
and unselected. Nothing I have tried seems to work.

Any suggestions will be appreciated.

Thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Calendar Control

Hi Mike

No, this is not working

Do you use it on userform ?
You can make a button like this to go up 1 month (untested)

Calendar1.Value = DateSerial(Year(Calendar1.Value), Month(Calendar1.Value) + 1, Day(Calendar1.Value))

and down

Calendar1.Value = DateSerial(Year(Calendar1.Value), Month(Calendar1.Value) - 1, Day(Calendar1.Value))

In the properties you can remove the dropdowns


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Mike S." wrote in message ...
I have created a calendar control on a form in Excel and everything works fine except for one thing. When the user selects a
different month from the drop down, I want the day to stay the same as the previous day that was selected. I have tried several
different methods, but the day remains empty and unselected. Nothing I have tried seems to work.

Any suggestions will be appreciated.

Thank you



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
Calendar Control John Excel Worksheet Functions 3 June 13th 07 08:36 AM
calendar control 10.0 timmulla Excel Discussion (Misc queries) 1 December 1st 05 12:38 AM
Calendar Control Gary B[_4_] Excel Programming 0 September 28th 04 10:33 PM
Calendar Control Vern Rabe Excel Programming 1 May 24th 04 06:15 PM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM


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

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

About Us

"It's about Microsoft Excel"