+ Reply to Thread
Results 1 to 4 of 4

Date problem in monthview userform

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    42

    Date problem in monthview userform

    Hi

    I have an userform with a monthview calendar on it. Unfortunately I can't figure out how to make the calendar pop up with today's date as the shown date.

    I thought this code was enough, but it doesn't do the job. The calendar shows the date on which the userform was created.

    Please Login or Register  to view this content.
    Last edited by h0ps; 12-03-2012 at 12:10 PM. Reason: solved

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    That code will run when the control is clicked.

    You'll need to use another event, perhaps the userform Initialize event.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Date problem in monthview userform

    You might try this.

    http://www.fontstuff.com/vba/vbatut07.htm
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Date problem in monthview userform

    Thank you. Using the initialize fixed the problem.

    Please Login or Register  to view this content.

+ 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