Forum Discussion

archit panda's avatar
archit panda
Copper Contributor
Aug 30, 2018

Excel macro not working module not found error

I have a excel macro sheet which works in one pc and doesn't work in another. It gives module not found error and doesn't list any macros.

 

Document contains 3 sheets( output,data,res).Macro calling sheet is the data sheet. But when I open the document - it says module not found. And after going in the sheet- I couldn't find the macros listed under macros tab in developer section. I have enabled macros from trust center settings.

 

Please help. Need it very urgently.

8 Replies

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor
    Are you by any chance opening this Excel file using a link? If so, first open Excel. Then click the link. Hope this helps.
    • archit panda's avatar
      archit panda
      Copper Contributor

      Hello Jan,

       

      update-

      I get module not found when I open the document. And when I click ok on it, a pop up says - we found a problem in some content. Do you want us to recover as much as we can. When I click yes on this pop up - another pop up says - lost visual basic project. For info - This excel document was created in 97-2003 and I am opening it in Excel 2016.


      Steps I took now-
      1. Mailed the same file from the machine where it was working to my machine.
      2. Downloaded and opened the file - now it says - VBA macros have are corrupted and have been deleted.Macro corruption mostly likely exists in the current file.
      3. I clicked ok on it.
      4. Closed the previous doc and opened it again - now the same module not found problem occurs .

      • JKPieterse's avatar
        JKPieterse
        Silver Contributor
        So your file contains some content the Excel version you are using does not like.
        Try saving the file from the PC where it works as an xlsm file and try that file on the other PC.
        If that fails, open the file on the PC where it does work and then try using Code Cleaner (www.appspro.com) on it to fix its VBA project. Then save-as to xlsm format.
    • archit panda's avatar
      archit panda
      Copper Contributor

      No. I am downloading the excel file and double clicking.

Resources