Share via

Access Macro Invalid Path

Anonymous
2018-08-13T04:10:56+00:00

Hello All,

I have received a database from a colleague who has departed our organization.  The database operates using a macro that pulls an excel file.  The macro is set up to look up the file on his computer which is an invalid path now.  How can I edit the file path of the macro to change it to pull the excel file from my computer?

Microsoft 365 and Office | Access | 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

7 answers

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-08-14T11:23:58+00:00

    The OP here specified a "macro". In Access macros are different from VBA and you cannot edit a macro through the VBA editor. Both your answers were incorrect.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-08-13T14:08:34+00:00

    You can open with VBA, it will show you the code, finally you can edit your Path

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-08-13T12:02:48+00:00

    You need to know which macro is causing the Error. The Error message you get should show the name of the macro. In the Navigation Pane (on the left), scroll down to the Macro section and select the macro in question. Right click and Open in Design mode. One of the lines in the macro should specify the location of the Excel file. Just change it to the correct location.

    Note: I"m guessing you are the only one who uses this app. If not, then you might want to change the file location to somewhere on your network.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-08-13T04:16:48+00:00

    Do you know which macro has the old path?

    If not, go to the VBA editor and press Ctrl+F and search for it or part of it. Then replace what is there with the new path.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2018-08-13T04:16:28+00:00

    If you are using Office applications, excel, you can select workbook -> Open contatiner folder. Or you can activate VBA, at plus F11, opn container

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments