+ Reply to Thread
Results 1 to 8 of 8

Calendar Control bug?

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Calendar Control bug?

    Hi guys

    I call upon the gurus again!

    I have created a userform in excel, on this I have a the Calendar control (Microsoft Calendar Control 11.0).

    I am having a huge problem outputting the date in the correct format on the worksheet. If the output date should be 09/12/2010 it will appear as 12/09/2010. If it is 13/12/2010 it outputs absolutely fine. It is almost as if the day number is before the month number it malfunctions?

    Within the controls properties, you are able to change the date to System (English) which I did.

    I have changed the formatting of the output cell in the worksheet to Custom and dd/mm/yyyy and also tried the Date formatting too. I have even customised the output in vba using the below.

    Any help greatly appreciated!

    Please Login or Register  to view this content.
    Last edited by stevow; 12-17-2010 at 07:37 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Calendar Control bug?

    Please Login or Register  to view this content.



  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Calendar Control bug?

    I never use calendar controls, they are always problematical.

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Calendar Control bug?

    Hi snb

    As you changed the formatting, are you saying you need to first output it as american format, then let the worksheet formatting convert it?

    Cheers

  5. #5
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Calendar Control bug?

    Got it to work with RoyUK's suggestion - MANY THANKS!

    Note for others, if your sheet is protected, this needs to be unprotected to work. So the final snippet will be:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Calendar Control bug?

    You can also use protectwithUserInterface if protected

    For alternative calendar Controls see this

  7. #7
    Registered User
    Join Date
    11-17-2009
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Calendar Control bug?

    Many thanks!

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Calendar Control bug?

    No problem. If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1