Share via

Run-time error 4172

Anonymous
2014-02-14T20:13:13+00:00

I have several groups of docs I open with macros.  Now when I try to open any of them, I get run time error 4172. I have no idea what this means and I know nothing about debugging macros. Any ideas?

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

Answer accepted by question author

Anonymous
2014-02-14T21:27:52+00:00

I believe the Run-time error 4172 is thrown when Word encounters a "path not found" error.

  • Have you changed the location or remapped network drives and/or shares to alternate locations?
  • Did this start occurring when you upgraded to Word 2013?
  • Have you established the documents' location as Trusted? An untrusted location will be considered not found.
  • Can you post some redacted snippets of the VBA code throwing the error?

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-02-14T21:59:14+00:00

    I believe the Run-time error 4172 is thrown when Word encounters a "path not found" error.

    • Have you changed the location or remapped network drives and/or shares to alternate locations?
    • Did this start occurring when you upgraded to Word 2013?
    • Have you established the documents' location as Trusted? An untrusted location will be considered not found.
    • Can you post some redacted snippets of the VBA code throwing the error?

    Yes, once I changed paths, everything worked. I had forgotten I had moved my Word docs to a new location.

    Thank you everyone for all your help.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-02-14T20:37:33+00:00

    Thanks once again, Doug, for a quick reply.

    I do not know how to find the code for that error code. Right click on the window is not available.

    <Merged with similar thread from same poster>

    Was this answer helpful?

    0 comments No comments
  3. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2014-02-13T02:40:28+00:00

    Show us the code that is giving the problem.  I assume that it is a File Not Found error that you are getting.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2014-02-13T00:35:06+00:00

    I have several macros I use all the time. Occasionally I will get "Run-time error 5174" on one or two macros. I then click on a macro that opens four documents at the same time and this gets the problem macro to work. Now none of my macros work. What to do?

    <Merged with similar thread from same poster>

    Was this answer helpful?

    0 comments No comments