Remove the SaveAsAdobePDF.ppam and SaveAsAdobePDF.xlam from the PowerPoint and Excel folders next to the Word folder. Launch Excel and PowerPoint and to the menu Tools - Excel Add-ins. And Tools - PowerPoint Add-ins., respectively, and remove the Save as Adobe PDF add-in, by unchecking it and removing it with the '-' button and then click OK. It seems to be a problem due to an corrupted/incompatible Adobe add-in. Close all Office apps. Hold down the Option key while clicking on the Go menu, and choose Library.

-->

Generates a run-time error.

Syntax

object.Raisenumber, source, description, helpfile, helpcontext


The Raise method has the following object qualifier and named arguments:

ArgumentDescription
objectRequired. Always the Err object.
numberRequired. Long integer that identifies the nature of the error. Visual Basic errors (both Visual Basic-defined and user-defined errors) are in the range 0–65535. The range 0–512 is reserved for system errors; the range 513–65535 is available for user-defined errors.
When setting the Number property to your own error code in a class module, you add your error code number to the vbObjectErrorconstant. For example, to generate the error number 513, assign vbObjectError + 513 to the Number property.
sourceOptional. String expression naming the object or application that generated the error. When setting the Source property for an object, use the form project.class. If source is not specified, the programmatic ID of the current Visual Basic project is used.
descriptionOptional. String expression describing the error. If unspecified, the value in Number is examined. If it can be mapped to a Visual Basic run-time error code, the string that would be returned by the Error function is used as Description. If there is no Visual Basic error corresponding to Number, the 'Application-defined or object-defined error' message is used.
helpfileOptional. The fully qualified path to the Help file in which help on this error can be found. If unspecified, Visual Basic uses the fully qualified drive, path, and file name of the Visual Basic Help file. See HelpFile.
helpcontextOptional. The context ID identifying a topic within helpfile that provides help for the error. If omitted, the Visual Basic Help file context ID for the error corresponding to the Number property is used, if it exists. See HelpContext.

Remarks

All of the arguments are optional except number. If you use Raise without specifying some arguments, and the property settings of the Err object contain values that have not been cleared, those values serve as the values for your error.

Raise is used for generating run-time errors and can be used instead of the Error statement.

Raise is useful for generating errors when writing class modules, because the Err object gives richer information than is possible if you generate errors with the Error statement. For example, with the Raise method, the source that generated the error can be specified in the Source property, online Help for the error can be referenced, and so on.

Example

This example uses the Err object's Raise method to generate an error within an Automation object written in Visual Basic. It has the programmatic ID MyProj.MyObject. On the MacIntosh, the default drive name is 'HD' and portions of the pathname are separated by colons instead of backslashes.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

Applicability

The information on this page applies to:
MathType for WindowsMicrosoft Word for Windows

Issue

Visual Basic Runtime Error 53

  1. When performing a copy and paste operation, users sometimes see this Visual Basic error:
  2. The error shown above sometimes appears when launching Word.
Note: Sometimes this issue happens after installing Windows updates. If you have noticed the issue after a Windows update, please uninstall MathType and then reinstall it. (If you need the installation file, you can download a new one for free from our store. Please note your MathType version. If it's MathType 6-something, your product key won't work for MathType 7. Be sure to follow the appropriate link for MathType 6.x.) If reinstalling does not correct the issue, please follow the instructions below.

Solution

It is likely the file MathPage.WLL is not located in Office's STARTUP folder. To add it manually, please follow these steps:

  1. Visit whichever of these folders is appropriate for your bit-level of Office:
    C:Program Files (x86)MathTypeMathPage32
    C:Program Files (x86)MathTypeMathPage64
  2. Once copied, visit the following location:
    C:Users[user name]AppDataRoamingMicrosoftWordSTARTUP
    Note this folder is normally hidden, so if you don’t have Windows set up to show hidden folders, you won’t be able to see it. If you still can't find this folder, you may paste the file here:
    C:Program Files or Program Files(x86)Microsoft OfficerootOffice16STARTUP
    or
    C:Users[user name]AppDataLocalPackages
    Microsoft.Office.Desktop_8wekyb3d8bbweLocalCacheRoamingMicrosoftWordSTARTUP
  3. After pasting the file, be sure to completely close Word, then re-open.

If that resolved the issue, you are done. If not, we suggest re-starting your computer and testing again.

If the issue has not been resolved, you may also change the macro security center settings to Disable all macros except digitally signed macros, or enable all macros. We've described below how to do this. MathType's macro for Word is digitally signed.

Please note: When enabling all macros, please be cautious with documents from senders that you are not familiar with. Documents from unknown sources can contain malicious code.

  1. Click the ‘File’ menu or the ‘Office’ button in the upper left corner.
  2. Click ‘Trust Center Settings’.
  3. Select the radio button for ‘Disable all macros except digitally signed macros.’
  4. Close Word and then re-open Word.

*If that does not resolve the issue, you may try enabling all macros.

Basic

Microsoft Visual Basic Runtime Error 53


Microsoft Visual Basic Runtime Error 53 On A Chromebook

We hope this has been helpful. As always, please let us know if you have questions about this, or if you have additional techniques that work. We'd love to hear from you.