Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Ribbon Calendar DatePicker Word 2007-2010

  1. #11
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    15
    Quote Originally Posted by Excel Fox View Post
    ...and I didn't particularly like the layout (still don't), as the Ribbon doesn't support more than 3 rows of elements.
    I think it was an excellent compromise... easy to understand, easy to use.

  2. #12
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    15
    Quote Originally Posted by Excel Fox View Post
    Tried to replicate the first point, but I couldn't. I tried quite a few other possibilities, but it seems that any change to the month or year drop-down always (and I mean always) select day 1 of that month. Can you check that again and let me know Rick?
    Checked again and it still operates the way I posted. Here is how I make it happen. Select October and then click the 31 button (this enters the date into the active cell), next click the down arrow for the month drop-down and select February from the list... March display with day 2 selected**... click any (valid) day button and the month name changes to February with the clicked day selected.

    ** I just noticed something that may help in tracking down the problem. For the year 2012, March 2nd was selected, but for a non-leap year, March 3rd is selected instead. It is as though your calculation method is to go to the last day of the month and subtract the new month's last day number from it... that seems to be the way the day is being generated for me... don't have any idea about the month that is being select though. When I get some free time, I will try examining your code for myself to see if I can spot what is happening.

    Oh, I forget to mention... I am using XL2007 (SP2) if that might end of mattering.

  3. #13
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Tried again. It's always selecting the 1st day. I guess it's the SP2. I'll try on another machine (probably at work) and get back to you on this one.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #14
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Great work Excel Fox !!

    It works fine on 2010.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #15
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    Do you have the Xml as well??

    Looks great!!

    Robert

  6. #16
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    The XML is posted in the original post Robert
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  7. #17
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    Thank you for your reply,

    Did i miss the call bacl functions, ???

    Regards,
    Robert

  8. #18
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    Alt F11,...

  9. #19
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    2 minor things,

    first your screentip for year, gives also month instead of year,

    two: btnWeedDay should be btnWeekDay i guessed,...,
    which is not so important, because you used it through your whole application,
    because, just to let you know,...

    (changed the year myself, because 35 years ahead, and back, where just a little bit to much for me...),

    Only thing overhere is that the day highlighted is wednesday, although it tuesday here,...
    try to figure it out in your code,

    windows settings??
    Timedifference,???

    Regards,

    Robert

  10. #20
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    'Callback for btnWeedDay1 getLabel
    Sub WeekDayLabel(control As IRibbonControl, ByRef returnedVal)
    'Stop
    returnedVal = Left(WeekdayName(Weekday(DateSerial(Year(dtmDate), Month(dtmDate), Val(Right(control.ID, 2))))), 2)

    returnedVal = Left(WeekdayName(Weekday(DateSerial(Year(dtmDate), Month(dtmDate), Val(Right(control.ID, 2))), vbUseSystemDayOfWeek)), 2)

    End Sub

    changing in system day of weeks will do the trick!
    (was now on vbSunday),

    Thank you for your co-operation and application,!!!

    Regards,

    Robert

Similar Threads

  1. Test copy Activate Ribbon Tab In Excel 2007 2010 *
    By Excel Fox in forum Test Area
    Replies: 16
    Last Post: 01-22-2019, 05:05 PM
  2. Excel 2003 Classic Menu in Excel 2007-2010
    By Excel Fox in forum Classic Menu
    Replies: 7
    Last Post: 09-10-2014, 10:29 PM
  3. Replies: 1
    Last Post: 02-14-2013, 11:08 AM
  4. Replies: 1
    Last Post: 10-16-2012, 01:53 PM
  5. Add ribbon programmatically to Excel 2010 using VBA
    By heapifyman in forum Excel Ribbon and Add-Ins
    Replies: 6
    Last Post: 07-18-2011, 09:16 PM

Tags for this Thread

Posting Permissions

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