Geek Documentation Logo

CheckboX

Version 1.2


Introduction


If you have already purchased this Software, let me take a moment to thank you for being a loyal customer
You are entitled to free lifetime updates for ALL future builds

This documentation is to help you understand the Software and to give you a more meaningful insight into what it can do. Please go through the documentation and read it carefully · Basic Excel and some VBA skills will be required

Requirements

You will need the following Excel Version & Prerequisite to use this Software

  1. Excel 2010 onwards (32bit or 64bit)
  2. Basic Excel and some VBA skills
  3. Windows PC · NOT a Mac!

No support is provided for customization or development of this Software






About CheckboX #back to top

CheckboX is a lovely animated Checkbox for Excel made from 2 Shapes, a Checkbox and a Tick. Both Shapes have a Macro assigned. When the Checkbox is clicked the animation rotates and fades a small green Tick in using easeOutQuad (fast, then slow acceleration). When the green Tick is clicked the Checkbox is highlighted with a green line and then a similar animation is ran to rotate and fade it in. You can duplicate and/or add the Code and Shapes very easily into a new or existing Project and capture which Checkboxes are Ticked

CheckboX Xmas List Image

Latest CheckboX Xmas List Image

Features include:

  • * Aesthetically pleasing with a lovely smooth animation upon the Checkbox or Tick Click
  • * Easily add to your own Projects
  • * Use your own Icons or Images (I recommend using Transparent PNG Images)
  • * Capture which Checkbox has been clicked or which Checkboxes are Ticked already using VBA
  • * Change the animation frame speed
  • * Change the Colour of the Line animation for the Checkbox







The Download File #back to top

The download File

Right-click and extract the CheckboX.zip archive. I have included the images that I used for the Checkbox and Ticks. Open the 'CheckboX_v1.1.xlsm' File. A License Worksheet is included in the Workbook. Select the "CheckboX" Worksheet. Here you will find the list of 5 Checkboxes. Click on each Checkbox to Tick the Checkbox. Press ALT+F8 and run the 'TestAllCheckboxStates1()' Macro to see which Checkboxes are Ticked. Press ALT+F11 to enter the VBA Editor. Scroll down and view the Code used for the Checkboxes. Before continuing, it is advised to take a Backup as you will no doubt want to Copy Checkboxes and Code from this Workbook. I have included Version 1.2 'CheckboX_v1.2.xlsm' as a new File included in the download - this Workbook uses transparent PNG's for the Checkboxes and the Ticks

The Checkbox Macro #back to top

The Shape use for the Checkbox is linked to the 'CheckboxClick()' Macro. This Macro enables the animation from Checkbox to Tick. The 'Tick' Macro is called here and it takes 3 Parameters, the Name of the Shape (I use Application.Caller), an Optional FrameSpeed (I use 0.06) and an Optional LineColour. You can react here to the click if you want to and if so, add your Code to the commented out Section beginning 'Your Code'. Please Note: you should change these Public Macros to Private Macros using the 'Private' prefix as calling them via ALT+F8 will result in an error - it's up to you, I left them as Public so that you can link more Checkboxes if required. You could of course replicate this Macro and change it to your own Code, just remember to set the 'IsRunning' Boolean variable to True after an initial check and Exit if it is already True to prevent multiple Mouse clicks

' CheckboxClick, the one and only Checkbox Subroutine.  handles all clicks and animation
Public Sub CheckboxClick()

    ' prevent multiple clicks
    If IsRunning Then Exit Sub
    IsRunning = True

    ' perform Tick animation, FrameSpeed & LineColour are Optional Parameters...
    Tick AnimationShape:=ActiveSheet.Shapes(Application.Caller), _
         FrameSpeed:=0.06, _
         LineColour:=RGB(59, 89, 153)

    ' Your Code if you need to complete any immediate action from a Checkbox click
    ' - ie. (checkbox is checked), Call update settings...
    'Debug.Print "Checkbox " & Right(Application.Caller, 2) & " is checked"

    IsRunning = False

End Sub
                            

The Tick Macro #back to top

The Shape use for the Tick is linked to the 'TickClick()' Macro. This Macro enables the animation from Tick to Checkbox. The 'Checkbox' Macro is called here and it takes 3 Parameters, the Name of the Shape (I use Application.Caller), an Optional FrameSpeed (I use 0.06) and an Optional LineColour. You can react here to the click if you want to and if so, add your Code to the commented out Section beginning 'Your Code'. Please Note: you should change these Public Macros to Private Macros using the 'Private' prefix as calling them via ALT+F8 will result in an error - it's up to you, I left them as Public so that you can link more Checkboxes if required. You could of course replictae this Macro and change it to your own Code, just remember to set the 'IsRunning' Boolean variable to True after an initial check and Exit if it is already True to prevent multiple Mouse clicks

' TickClick, the one and only Tick Subroutine.  handles all clicks and animation
Public Sub TickClick()

    ' prevent multiple clicks
    If IsRunning Then Exit Sub
    IsRunning = True

    ' perform Checkbox animation
    Checkbox AnimationShape:=ActiveSheet.Shapes(Application.Caller), _
             FrameSpeed:=0.06

    ' Your Code if you need to complete any immediate action from a Tick click
    ' - ie. (checkbox is not checked), Call update settings...
    'Debug.Print "Checkbox " & Right(Application.Caller, 2) & " is not checked"

    IsRunning = False

End Sub
                            

The Checkbox Shape #back to top

The Checkbox Shape is a Shape with an Image of a small grey Checkbox but this can be any Icon or Image you like. It is also where you should link your 'CheckboxClick()' Macro ie. right-click on Shape and choose Assign Macro... (make sure the Worksheet Protection is removed first). To view the Shape and change the Formatting or Image, right-click on a Shape and use the Selection Pane on the Arrange Group of the PAGE LAYOUT Tab of the Ribbon. Right-Click and then choose 'Format Picture...'

The CheckboX Shape

The Tick Shape #back to top

The Tick Shape is a Shape with an Image of a small green Tick but this can be any Icon or Image you like. It is also where you should link your 'TickClick()' Macro ie. right-click on Shape and choose Assign Macro... (make sure the Worksheet Protection is removed first). To view the Shape and change the Formatting or Image, right-click on a Shape and use the Selection Pane on the Arrange Group of the PAGE LAYOUT Tab of the Ribbon. Right-Click and then choose 'Format Picture...'

The Tick Shape

The Easing Animation #back to top

Both the Checkbox and the Tick Shapes are animated using a Frame Timer. They have Rotation and Transparency animations in order to Fade in or out and rotate nicely in sync. They also have an easing Function applied called 'easeOutQuad' which starts the animation quickly, then slows dow towards the end of the animation. Here is the easing Function that I use:

' easeOutQuad, fast acceleration, then slow
Function easeOutQuad(ByVal t As Double, ByVal b As Integer, ByVal c As Integer, ByVal d As Double)
    t = t / d
    easeOutQuad = -c * t * (t - 2)
End Function
                            

Adding Style #back to top

You can add some nice effects to the Shapes to make the Checkboxes stand out or 'jazz' up the Tick. In the first Image below I have addeda Shadow effect on Checkbox, full reflection, 8pt offset on Tick and a Shadow effect on Checkbox with solid Fill in Red - the first Styles Image shows the Checkbox before the Tick is applied for the first Checkbox and then the second Styles Image shows the Tick with its reflection

Checkbox Styles

Limitations #back to top

The Code is limited to 100 Checkboxes and Ticks without modification

Screen Shots #back to top

The CheckboX Workbook

This is a Screen Shot of the CheckboX Workbook with a Xmas To Do list available for Purchase. You can just see the Checkbox is animating following a click on the green Tick Shape

CheckboX Image 1000px x 654px

This is a Screen Shot of Version 1.2 of the CheckboX Workbook using transparent PNG's as Icons or Images for the Checkbox and Tick. I have also added a Drop-shadow to the 'Christmas To Do List'

Latest CheckboX Image 1000px x 654px




Videos #back to top

Video of the 5 Checkboxes in Action

Here I run through the Checkbox list testing the animations






Can I copy the Checkboxes?

Yes just select both Shapes and use Copy & Paste. Then rename the Shapes as 'checkbox15' and 'tick15' and the Code will work for the extra Checkbox






Support #back to top

Please remember you have purchased very affordable Software and you have not paid for a full-time Software design agency - I am but one man. Occasionally I may help with small tweaks, but these requests will be put on a much lower priority due to their nature. You have not PAID for Support, Support is 100% optional and I provide it for your convenience, so please be patient, polite and respectful

Support (limited) for my Software includes:

* Responding to questions or problems regarding the Software and its features
* Fixing valid (replicated) bugs and reported issues for the VERSION I HAVE WRITTEN

Software support does not include:

* Customization and installation services
* Support for third party software or ANY kind of development whatsoever

Before seeking support, please...

* Make sure your question is a valid Software Issue and not a customization request
* Make sure you have read through the documentation and any related video guides before asking support on how to accomplish a task
* Make sure to double check the Software FAQs or online documentation
* Ensure that you access to the VBOM is allowed and that Macros can run in Excel
* Make sure to provide 'proof of purchase' and state the name / version of the Software that you are having issues with when requesting support by Email or via Facebook

How to get Support

Contact Mark Kubiszyn on the Email address provided when you purchased the Software, including the Order Number
Contact Kubiszyn.co.uk via our Facebook Page - remember to be patient, if there has been an issue with your download, I will always respond within 48 hours and will Email you the File directly if neccessary or via Messanger. For other issues the response time may be considerably longer and I may choose to respond to specific questions only (as is my right), depending on what has been asked

Version History (Changelog) #back to top

You can find the version history in the Code Module for any Macro-enabled Software or read more information below. The latest Version is always shown first


Changelog

06.11.2018 (Version 1.2) Created a second File and used Transparent PNG so that Checkboxes can be placed upon a coloured background

---

04.11.2018 (Version 1.1) Added the ability to change the Colour of the Line for the Checkbox animation
                         Included the Ticks and Checkbox images I used into a new download File CheckboX.zip
                         Added some Style effects

---

03.11.2018 (Version 1)