![]() |
#1
|
|||
|
|||
![]()
Hello all,
Attached is an .xlsm with Sheet 1 (Accrual!) displaying a table that updates based on Sheet 2 (Catalog!). I pulled these 2 sheets from a larger Workbook to simplify the problem I've having. If you view code for Accrual!, you can see the Sub I've written (with help from members here at MSOffice Forums). The timestamps no longer update when the table in Accrual! updates, and when I run the debugger this is what I see: "Compile error. Variable cannot be defined." -------------------------------------------------------------------------------------- TotalEnrolled = Range("A17") End Function Public Function TotalComplete() As Long TotalComplete = Range("L17") End Function => Public Sub CheckForChanges() Application.EnableEvents = False If Range("A17") <> LastValue.Range("TotalEnrolledLast") Then Application.EnableEvents = False Range("A18") = Date + Time LastValue.Range("TotalEnrolledLast") = Range("A17") End If If Range("L17") <> LastValue.Range("TotalCompleteLast") Then Range("L18") = Date + Time LastValue.Range("TotalCompleteLast") = Range("L17") End If Application.EnableEvents = True --------------------------------------------------------------------------------- Any help understanding the problem here would be greatly appreciated. Thanks in advance! -AW |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Victora | Word VBA | 1 | 12-29-2012 08:47 AM |
Timestamp appear in reading pane | charlesmac | Outlook | 3 | 08-10-2012 02:16 AM |
Using Date and Time (Timestamp) as a bullet | m2oswald | Word | 1 | 02-07-2012 03:41 PM |
Convert Timestamp to GMT Time | SteadyWord | Word | 0 | 06-07-2010 06:38 AM |
Timestamp for notes in contacts? | boe | Outlook | 2 | 11-30-2005 04:19 PM |