Hi jdcarter and welcome to ExcelForum,
See the attached file which works as follows:
a. An Endless loop that (that repeats every 10 seconds) colors expired cells red in Column 'D', starts automatically when the workbook that opens.
b. The cell expiration time is 10 minutes.
c. Each time a cell in 'E1' thru 'E35' changes value, the cell in the same row in Column 'D' is Timestamped, and the Font in the cell is set to the Default font color.
d. To stop the Endless loop for any reason, Left Click the Yellow shape that STOPS the Endless loop.
e. To RESTART the Endless loop (actually stops and then starts the Endless Loop), Left Click the Yellow shape the RESTARTS the Endless Loop.
f. When the Workbook closes, the Endless Loop automatically stops.
In the ThisWorkbook code module:
In the 'Sheet1' code module:
It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
This option requires all variables to be declared and will give a compiler error for undeclared variables.
To enable Macros and to Run Macros see the following:
http://office.microsoft.com/en-us/ex...010031071.aspx
http://office.microsoft.com/en-us/ex...010014113.aspx
If help is still needed do a google search for 'youtube excel enable macro' and/or 'youtube excel run macro'.
To access Visual Basic (VBA) see:
http://www.ablebits.com/office-addin...a-macro-excel/
a. Click on any cell in the Excel Spreadsheet (may not be needed).
b. ALT-F11 to get to VBA.
c. CTRL-R to get project explorer (if it isn't already showing).
d. Double Click on a 'Module Name' in 'Project Explorer' to see code for that module.
Lewis
Bookmarks