Results 1 to 10 of 25

Thread: Ribbon Calendar DatePicker Word 2007-2010

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10

    Lightbulb Ribbon Calendar DatePicker Word 2007-2010

    A word based ribbon calendar. Just created for fun. Feedback would be appreciated

    In case you'd like to have this in Excel, raise your hand

    And for those of you who are interested in the XML

    PHP Code:
    <!--Ribbon Examples from ExcelFox.com--> 
    <
    customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="CalendarLoad"><!--For Excel 2010, use 2009/07 instead of 2006/01--> 
    <
    ribbon
    <
    tabs
    <
    tab id="tabActiveMonth" label="Calendar" insertAfterMso="TabView" keytip="C"
    <
    group id="grpActiveMonth" getLabel="GroupLabel"
    <
    box boxStyle="horizontal" id="OuterBoxControl"
    <
    box boxStyle="vertical" id="InnerBoxControl"
    <
    comboBox 
    id
    ="cboMonth" 
    screentip="Month" 
    supertip="Select the desired month" 
    sizeString="XXXXXXXXXXXX" 
    onChange="MonthOnChange" 
    getItemID="MonthItemID" 
    getItemCount="MonthItemCount"
    getItemLabel="MonthItemLabel" 
    keytip="DM" 
    getText="MonthGetText"
    <!--<
    item id="cboMonth01" label="Jan"/> 
    <
    item id="cboMonth02" label="Feb"/> 
    <
    item id="cboMonth03" label="Mar"/> 
    <
    item id="cboMonth04" label="Apr"/> 
    <
    item id="cboMonth05" label="May"/> 
    <
    item id="cboMonth06" label="Jun"/> 
    <
    item id="cboMonth07" label="Jul"/> 
    <
    item id="cboMonth08" label="Aug"/> 
    <
    item id="cboMonth09" label="Sep"/> 
    <
    item id="cboMonth10" label="Oct"/> 
    <
    item id="cboMonth11" label="Nov"/> 
    <
    item id="cboMonth12" label="Dec"/>--> 
    </
    comboBox
    <
    comboBox 
    id
    ="cboYear" 
    screentip="Month" 
    supertip="Select the desired month" 
    sizeString="XXXXXXXXXXXX" 
    onChange="YearOnChange" 
    getItemID="YearItemID" 
    getItemCount="YearItemCount" 
    getItemLabel="YearItemLabel" 
    keytip="DY" 
    getText="YearGetText"
    <!--<
    item id="cboYear12" label="2010"/> 
    <
    item id="cboYear11" label="2011"/> 
    <
    item id="cboYear10" label="2012"/> 
    <
    item id="cboYear09" label="2013"/> 
    <
    item id="cboYear08" label="2014"/> 
    <
    item id="cboYear07" label="2015"/> 
    <
    item id="cboYear06" label="2016"/> 
    <
    item id="cboYear05" label="2017"/> 
    <
    item id="cboYear04" label="2018"/> 
    <
    item id="cboYear03" label="2019"/> 
    <
    item id="cboYear02" label="2020"/> 
    <
    item id="cboYear01" label="2021"/>--> 
    </
    comboBox>
    <
    comboBox
    sizeString
    ="XXXXXXXXXXXX" getText="DateTypeGetText" 
    id="cboDateType" onChange="DateTypeOnChange">
    <
    item id="itmDT01" label="General Date"/> 
    <
    item id="itmDT02" label="Long Date"/> 
    <
    item id="itmDT03" label="Short Date"/> 
    </
    comboBox>
    </
    box
    </
    box
    <
    box boxStyle="horizontal" id="Box1"
    <
    box boxStyle="vertical" id="InnerBox01"
    <
    toggleButton id="btnWeedDay01" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay01" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay15" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox02"
    <
    toggleButton id="btnWeedDay02" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay02" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay16" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox03"
    <
    toggleButton id="btnWeedDay03" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay03" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay17" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox04"
    <
    toggleButton id="btnWeedDay04" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay04" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay18" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox05"
    <
    toggleButton id="btnWeedDay05" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay05" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay19" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox06"
    <
    toggleButton id="btnWeedDay06" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay06" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay20" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox07"
    <
    toggleButton id="btnWeedDay07" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay07" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay21" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox08"
    <
    toggleButton id="btnWeedDay08" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay08" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay22" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox09"
    <
    toggleButton id="btnWeedDay09" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay09" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay23" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox10"
    <
    toggleButton id="btnWeedDay10" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay10" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay24" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox11"
    <
    toggleButton id="btnWeedDay11" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay11" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay25" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox12"
    <
    toggleButton id="btnWeedDay12" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay12" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay26" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox13"
    <
    toggleButton id="btnWeedDay13" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay13" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/>
    <
    toggleButton id="btnDay27" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox14"
    <
    toggleButton id="btnWeedDay14" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction"/> 
    <
    toggleButton id="btnDay14" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    <
    toggleButton id="btnDay28" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox15"
    <
    toggleButton id="btnWeedDay15" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction" getVisible="DayVisible"/> 
    <
    toggleButton id="btnFalseDay01" label="X" enabled="false" getVisible="DayVisible"/> 
    <
    toggleButton id="btnDay29" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip" getVisible="DayVisible"/> 
    </
    box
    <
    box boxStyle="vertical" id="InnerBox16"
    <
    toggleButton id="btnWeedDay16" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction" getVisible="DayVisible"/> 
    <
    toggleButton id="btnFalseDay02" label="X" enabled="false" getVisible="DayVisible"/> 
    <
    toggleButton id="btnDay30" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip" getVisible="DayVisible"/>
    </
    box
    <
    box boxStyle="vertical" id="InnerBox17"
    <
    toggleButton id="btnWeedDay17" getLabel="WeekDayLabel" getPressed="WeekDayPressed" onAction="WeekDayOnAction" getVisible="DayVisible"/> 
    <
    toggleButton id="btnFalseDay03" label="X" enabled="false" getVisible="DayVisible"/> 
    <
    toggleButton id="btnDay31" getLabel="DayLabel" getPressed="DayPressed" onAction="DayAction" getKeytip="DayGetKeyTip" getVisible="DayVisible"/>
    </
    box
    </
    box
    </
    group
    </
    tab
    </
    tabs
    </
    ribbon
    </
    customUI

    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Attached Files Attached Files
    Last edited by DocAElstein; 07-07-2023 at 01:07 PM.
    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

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
  •