Results 1 to 11 of 11

How to uncheck checkboxes with Date Macro

Threaded View

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    14

    How to uncheck checkboxes with Date Macro

    I am new to VBA and this Forum. I am trying to create a bit of a tricky Excel Spreadsheet. I currently have a spreadsheet that records our battery recharging information(Crate #, Date last charged, Date for Recharge). This spreadsheet currently has a Macro that when opened sends an email to certain employees as to which crate requires charging. I would like to change it so that instead of manually entering the dates you check a checkbox and the next date automatically comes up. That part is easy. The difficult part is getting the checkbox to uncheck when the date for recharge passes. The code below unchecks the checkboxes but how do I modify it to uncheck when date is less than today?
    Sub ResetAllCheckboxes()
        With ActiveSheet
            For Each chk In .CheckBoxes
                chk.Value = False
            Next
        End With
    End Sub
    Any help would be appreciated!

    Thanks,

    Ash
    Last edited by Ashnette; 02-04-2010 at 01:58 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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