Share via

Excel vba - file not found

Anonymous
2014-10-28T15:24:13+00:00

Hi All,

A few days I was working on an Excel vba add-in and don't know what went wrong - I tried to remove a module - but I see it is still there and I cannot open it anymore. And having the error "file not found".

Is there anyway to recover from this? TIA.

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

2 answers

Sort by: Most helpful
  1. Anonymous
    2014-10-29T18:28:51+00:00

    Hi All,

    After tenths of trials and days of retrial, I managed to fix it. By reversing the changes I would apply it was pinpointing more and more to the last step, removing the module. Starting by copying the constants and removing the module, save it; close and restart Excel, I could implement all other changes without problem.

    Don't ask me why this worked. Maybe one of you knows.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-10-29T17:51:44+00:00

    Hi All,

    Further trying to recover and find an answer.

    I have to normal modules that I want to merge to 1 because one of them contains only some public constants. So, I copy these to the other and removed the 2nd module.

    When I reopen the file, the 2nd module is there again but I cannot "open" it anymore and get the "file not found" message.

    I searched the project if I used something as modX. but nothing.

    Was this answer helpful?

    0 comments No comments