MSWord for Mac macros get error message

Ronald Kessler 20 Reputation points
2025-08-04T21:38:23.7866667+00:00

I have MSWord for Mac v. 16.99. When I run any macro that I created and that used to work I get Microsoft Visual Basic System Error &H*000FFF (-2147418113). I have messaged with MS support which had me go into Visual Basic and replace a macro with "Sub SimpleTest()

MsgBox "If you see this, VBA is working!"

End Sub" The problem recurred with the same error when I ran that test macro. When I try to create a new macro I get the same error.

Microsoft 365 and Office | Access | For home | Other
0 comments No comments
{count} votes

Accepted answer
  1. Gabriel-N 3,705 Reputation points Microsoft External Staff Moderator
    2025-08-05T02:05:51.9233333+00:00

    Hi Ronald Kessler

    Thank you for posting your question on the Q&A forum regarding the VBA macro error in Microsoft Word for Mac. I totally understand how confusing this must be, especially when something that used to work perfectly suddenly starts throwing errors. Based on my research, there’s a possibility that the error may not consistently occur depending on how the macro is triggered. Some users have reported that this issue often arises when working with Forms, and it has also been observed on Windows OS. Here are a few suggestions that may help you troubleshoot the issue:

    • Try Opening Word in Safe Mode: This can help isolate whether the issue is caused by add-ins or other startup items. How to use a "clean startup" to determine whether background programs are interfering with Office for Mac
    • Save the Document Locally: Try saving the document to your local drive and then run the macro again. Some users have found this resolves the issue.
    • Check VBA Reference Libraries: In the VBA editor, go to Tools > Preferences... and try deactivating libraries one by one to see if the error is linked to a specific reference. User's image
    • Test in a New Document: Create a new Word document, paste your macro code into it, and test again. This can help determine whether the issue lies with the code itself or a corruption in the original file.
    • Delay Macro Execution It’s possible the macro is trying to run before the document or UserForm is fully loaded. You can try calling your macro from another subroutine using Application.OnTime, with a delay of about 10 seconds, to see if the issue persists. https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word._application.ontime?view=word-pia

    This example executes the macro named ‘Macro1’, which includes the project and module name, exactly 10 seconds after the example is run.

    Application.OnTime When:=Now + TimeValue("00:00:10"), _                     Name:="Project1.Module1.Macro1" 
    

    Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution.

    Looking forward to hearing back from you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.