+ Reply to Thread
Results 1 to 5 of 5

Month View Control to locate future date (Or Red Circle)

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Month View Control to locate future date (Or Red Circle)

    Good day,
    I am searching but did not come across anything of this sort.
    I had a Calendar Control (2007) but now stuck using 2013. I have to change all of codes related to my Calendar Control to a Month View Control. Problem is I had 4 command buttons beside my calendar to automatically add value to the calendar:

    My Code is in a userform. Standard code for MonthView:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Basically it was “highlighting” the todays date but if one of the cmd_button was clicked then it would highlight the today’s date plus 15 (making the highlighted date, if we take today as an example: 2014/05/22).

    Now with the Month View is there a way to select the exact same thing? I mean I know if I deactivate the “Show Today” in the properties but is there a way to make the selected date to have the “Circle in Red” around the date IF I click on a command button?
    Last edited by Excelnoub; 05-07-2014 at 09:13 AM.

  2. #2
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Month View Control to locate future date (Or Red Circle)

    The reason why I need this function is for the sole purpose that I will be working with 3 userform (Calendar Control/Monthview).

    The first Calendar Controls all my Worksheets that will need to have a popup calendar.

    The second Calendar Control is for all userform that will need to be populated with a “click” popup calendar. I have a got a module that populates all textboxes from all userforms that requires a date.

    My third Calendar Control, the one that I am working on, was a Calendar Control 2007 that when generated, generated the “Todays” date. I have 4 command button:

    Cmdbutton1 was on click = Today’s date
    Cmdbutton1 was on click = Today’s date + 15 making the selected date 15 days after the today’s date.
    Cmdbutton1 was on click = Today’s date + 24 making the selected date 24 days after the today’s date.
    Cmdbutton1 was on click = Today’s date + 15 making the selected date 40 days after the today’s date.

    Now that the Calendar Control 2007 is not implemented with Excel 2010 or 2013, I need to figure out a way to have my 3rd calendar do the same thing with a monthview calendar control.

    The purpose for this third calendar is that we need to select a date, if applicable, 15, 24 or 40 days after today and to show us the weekday as we cannot have it on a Saturday nor a Sunday.

    I guess I could do a textbox with the monthview date and have a label to tell me when the weekday falls under.

    But if there would be a easier way... It would be appreciated

    Thank you,

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Month View Control to locate future date (Or Red Circle)

    Another solution would be but how would I obtain this:

    Please Login or Register  to view this content.
    So that it would show the following in the label1: If we take today date

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I will add it to change the label on change upon each commend button. But would need help figuring out this code as an alternative.

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Month View Control to locate future date (Or Red Circle)

    I have the following solution:

    Please Login or Register  to view this content.
    Adding the following to all my Command_Buttons:

    Please Login or Register  to view this content.
    I guess it will do for now until...

  5. #5
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Month View Control to locate future date (Or Red Circle)

    WOW ok now I feel a little stupid...

    Just found out that when I change the "Titlebackcolor" from the properties it will go the the date that I choose if I add +(number)

    Nice:

    Final Code:


    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)

Similar Threads

  1. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  2. Excel 2010 Month View Control missing
    By Luphai in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2013, 08:48 AM
  3. [SOLVED] Locate month n year from range of date
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-02-2006, 05:20 AM
  4. [SOLVED] [SOLVED] Locate month and year from range of date from another sheet
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-01-2006, 04:00 AM
  5. [SOLVED] Month View control to disabled specific days
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2005, 03:30 AM

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