Created
November 12, 2021 17:22
-
-
Save Se7enSquared/a90a787fad37acf56c586976d2898fa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub DateStampCell(stamp_rng As Range, worksheet_list As Collection) | |
On Error GoTo catch_error: | |
For Each sht In worksheet_list | |
stamp_rng.Value = "Last Updated: " & Now & " Data since: " & [LastRunDate] | |
Next sht | |
Exit Sub | |
catch_error: | |
If testing_mode = True Then GoTo debug_error | |
Libraries.LogErrorMessageToXls "Date stamping a cell has failed in " & ThisWorkbook.Name, "Macro error: " & Err.Description & " in DateStampCell subroutine", "https://hp.sharepoint.com/teams/WS OEM PRGM/OCMS Reports/AutomationErrorLogs.xlsx", "ErrorLog", "tbl_ErrorLog" | |
debug_error: | |
Application.DisplayAlerts = True | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment