OverviewExamples
Application.SetLastError(0); -- set the last error to "no error occurred"
Sets the last error code to 0, signalling that "the last action was successful." (The text after the "--" in this example is just a comment.)
Application.SetLastError(3245);
Sets the last error code to 3245.
See also: Related Actions