macros disappearing - Word 2019 for Mac

Anonymous
2019-08-21T18:34:26+00:00

When I create macros in the 2019 version of Word for Mac as a way of opening frequently used files, the macros work immediately after I create them, but then anywhere from a few minutes to a day later I get the following error message: "Sorry, we can't find your file.  Was it moved renamed or deleted."  I didn't have this problem with the previous version of Word for Mac or any of the earlier versions of Word I used from back to about the late 1980s, tho those were for Windows-based PCs.

Does anyone have any idea what's causing this problem and how to fix it?

FYI, I'm creating the macros the way I always did, clicking on Tools, then Macros, then Record Macro, then entering in the Keyboard Shortcut box the keys I want to use, then opening the file I want to create access to, then going back to Tools and clicking Macros and End Recording.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

53 answers

Sort by: Most helpful
  1. Charles Kenyon 171K Reputation points Volunteer Moderator
    2019-09-27T18:07:29+00:00

    If both files are moved and stay in the same folder as each other, will the relative path with simply the name of the target document work?

    Was this answer helpful?

    0 comments No comments
  2. Jim G 134.1K Reputation points MVP
    2019-09-27T14:49:54+00:00

    As long as you do not move or rename your files or their enclosing folders, or your startup volume, your macros should work just fine. It's only when you move, rename files or folders of either the source or target documents will you run into the issue.

    Understanding files, folders, and directories

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-09-27T05:50:44+00:00

    Dear Richard_1931,

    Thanks for your information.

    As it seems that there are several issues related to the macro in Word 2019 for Mac in your environment, welcome to use the feedback tool in the upper-right corner of your app to report the issue to our related team directly so that they can address your requirement with more resources in your environment for further investigation.

    Best Regards,

    Cliff

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-09-26T16:19:59+00:00

    I take it that a file path is the series of commands I use in a macro created for the purpose of opening a file.  As I understand your message, you're saying I can't start the path by clicking Command O, then Documents, then the Document folder that contains the file I want to open, then the file, that instead I have to start at Users.  I still don't understand why this should be necessary since I can start at Command O with the 2010 version of Word that I have on my MacBook and create macros that don't stop working as do those in the 2019 version of Word I have on my iMac.  But I tried starting the path in Finder at Users, actually at McIntosh, that I had to click on first to access Users, then clicked on my User name, then on Desktop, but at that point I got a message that said "The folder “Desktop” can’t be opened because you don’t have permission to see its contents."

    I then tried McIntosh/Users/my User name/Documents and got the same you don't have permission message.

    So where do I go from here?

    I keep wondering why I'm having the problem of macros ceasing to function after a few minutes to a few days with Word 2019 when I'm not having that problem on my MacBook with Word 2010.  It seems to me that there's some sort of programming error in the 2019 version that Microsoft needs to fix, indeed should have fixed long ago after I made them aware in several calls and emails in and after October of last year of the problems I was having with the 2019 version.  But if there's a workaround that will make macros work for me, I'd be happy to use it until the underlying problem is fixed.

    By the way, I haven't tried to use the 2010 version on my iMac because I get the message on my MacBook that it's no longer supported and needs to be replaced by a newer version.  However, as I said, it still works without problem on my MacBook.

    I also have never, as far as I'm aware, moved, deleted or renamed the Calendar and Frequently Called Numbers files, which I've been using in my efforts to create macros that don't self-destruct on my iMac in Word 2019.   I created those files in their current path about 25 years ago moved then to my MacBook when I bought it, and transferred them to my iMac when I set it up, and, as I keep saying, the macros still work fine on my MacBook, with Word 2010, but on my iMac, with Word 2019, the macros work for only a few minutes to a few days, and then I get the error message when I try to use the macro.

    Was this answer helpful?

    0 comments No comments
  5. Jim G 134.1K Reputation points MVP
    2019-09-25T14:07:36+00:00

    To use an absolute file path, change the code slightly.

    This is relative path the recorder recorded:

    ...Documents.Open FileName:="Document.docx"...

    A complete path would look something like this (using the path to your Word document);

    ...Documents.Open FileName:="**/Users/username/Desktop/Test/**Document.docx"...

    Notice the addition of all the enclosing folders with each directory level denoted by a slash to the file path in the second example.

    When you use the complete file path, the location of the document having the macro is not important. However, if you move, delete, or rename the document file or any enclosing folders, the macro will fail.

    Was this answer helpful?

    0 comments No comments