Traducir el blog

Rolling Calendar Control Tutorial

Posted on febrero 03, 2021 by Excel Pedro Wave

This is the tutorial on the Rolling Calendar Control that I published and that you can download from here

A "friend" told me that this Calendar Control is like a bomb rolling watchmaking. Seeing this image you may be right:



It consists of 7 control groups:

  1. Left side: with 3 buttons to change the control zoom.
  2. Left center: to change the date.
  3. Right center: to change the time.
  4. Right side: with 3 buttons to set the current date and time; for accept changes and to undo changes.
  5. Digits above: to lower the middle pairs of digits.
  6. Digits below: to raise the middle pairs of digits.
  7. Middle digits: clicking on the middle digits toggles between the dates and its format.

These controls can be better placed in this image:


Each pair of digits in the central controls has a pair of digits with the lower value and below another pair of digits with the higher value. By clicking on one of the pairs of digits in the rows upper or lower respectively decreases or increases the torque value of central digits.

BONUS: By placing the cursor on a pair of central digits and moving it to the row higher or lower continuously decreases or increases the value of the associated pairs, as if turning the wheel of that pair of digits, so I have called this "Rolling" Calendar Control.


The three buttons on the left allow you to change the zoom of the control:

Top button: zooms 10% to a maximum of 160%,

Center button: zooms to 100%.
Bottom button: zooms out 10% to a minimum of 80%.



    The three buttons on the right are used to:

    Top button: put the current date and time and update it every second.
    Central button: accept the selected date and time, putting its value in the active cell.
    Bottom button: undo changes and put the value back in control active cell.



      If the sheet is protected and the selected cell is also protected, The Control will be displayed, but when trying to change the value of the cell active, it will not allow to change its value, giving the following warning:

      "The active cell cannot be updated because it is protected."


      Clicking with the right mouse button on the side control left, you enter several menu options:



      We have already discussed the first option that allows you to zoom in on the control with the increase and decrease buttons.

      This option indicates the type of date displayed and can be changed with the increase and decrease buttons. The number format of the active cell it is not modified in any case. The possible date types are:
        • *0 or *1 or *2: Those beginning with an asterisk character (*) indicate which is the regional date format by default, with the separator by system default, so it can be both the "-" character and the "/" character. Its number indicates the same as for the 3 types following.
        • 0 = mm/dd/yyyy being its order: month/day/year
        • 1 = dd-mm-yyyy being its order: day-month-year
        • 2 = yyyy-mm-dd being its order: year-month-day

      The time format is always the same: hh:mm:ss being its order: hours minutes seconds


       
      This option indicates the rotation speed of the digit pairs change. It can be modified with the increase and decrease buttons. A value s0 makes the Control non-rolling. s8 is the default speed.

      With the values s1 (very slow) to s9 (very fast) the Control is rolling when the mouse cursor is passed from the digits in the middle to the digits above or below.

      This option indicates the type of text font for the control. It can be modified with the increase and decrease buttons. There are 6 fonts:
        • f1 - Calibri
        • f2 - MS Sans Serif
        • f3 - Palatino Linotype
        • f4 - Tahoma
        • f5 - Times New Roman
        • f6 - Verdana

      This option allows you to change the color of the control with the increase and decrease buttons, as can be seen in the following image.

       



      Clicking with the right mouse button on the right side control, you enter other menu options:



      With this option you access with the browser to the blog post: Rolling Calendar Control.
      This option shows the hidden sheet 'ControlCal' that controls all actions of this Control.
      With this option you access the Copyright page.


      This Calendar Control is displayed if the format of the cells is a type of number with date and/or time format.

      Examples of cell formats with date and / or time number type:

      • Formats that display the date and time:
        • mm/dd/yyyy hh:mm:ss
        • mm/dd/yyyy hh:mm
        • d mm aa h:m
      • Formats that display the date:
        • mm/dd/yyyy
        • dd-mmm-yy
        • mmm-yy
      • Formats that display the time:
        • [$-F400]h:mm:ss AM/PM
        • hh:mm
        • hh:mm:ss
      • Formats that are not displayed, such as elapsed times:
        • [h]
        • [m]

      If the cell is empty and has a date and/or time format, the control displays the current date and/or time.

      If the cell contains an incorrect date, it reports the error, for example the dates of January and February 1900, which Excel does not calculate well for consider that leap year wrongly:

      "Incorrect date due to being < 1900-03-01"


      In the following video, in Spanish, you can see the new Rolling Calendar Control in action, although most of the explanations in this tutorial are not included in the video, since it is made with the first version of the Control:



      Could comment on anything that is not clear or could be improved.

      If you are looking for a more conventional Calendar Control, go to the one I published here.

      No Response to "Rolling Calendar Control Tutorial"

      Leave A Reply

      Dime si te gusta lo que lees y, si no te gusta, dime por qué. Tengo habilitada la moderación de comentarios. Tu comentario se publicará pronto.

      Mi lista de blogs