![]() Msgbox "The most recent error number is " & Err & _ The Err function returns the number of the error encountered. The On Error statement also specifies a set of statements to execute if an error is encountered. The On Error statement causes Visual Basic for Applications to start or stop error trapping. You can take advantage of error trapping in Microsoft Excel for Mac by using the following functions and statements. ![]() While Visual Basic code is running, you may encounter several types of errors that can be trapped. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. ![]() This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. ![]() This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. Microsoft provides programming examples for illustration only, without warranty either expressed or implied.
0 Comments
Leave a Reply. |