+ Reply to Thread
Results 1 to 3 of 3

Corrupt Module

  1. #1
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Corrupt Module

    At some point in my Excel VBA application development, one of my modules became corrupt. When that file got somehow corrupted, I was no longer able to save my .xlsm file. It kept crashing Excel and restarting it with a recovered copy.

    By trial andf error (trying to rebuild a new file by copying over worksheets and individual modules) i discovered that one module in particular caused the crash. When trying to export this particular module, it crashed Excel. When I used the VBeditor to access that module, it crashed.

    This is a critical module, and the module that I had been working exclusively on so much work had been completed since my last backup save.

    Is anyone able to suggest a means that I can access this module? Even if just to be able to copy it's contents?

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Corrupt Module

    Maybe try and export the module through VBA in another workbook?
    A very brief web search came up with this that may assist.
    https://social.msdn.microsoft.com/Fo...forum=exceldev

    Let us know if you need more help.

    Beth.

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Corrupt Module

    Have you tried opening the workbook with the problems without activating the macro's?
    Open Windows Explorer, go to the folder that hold your file, select the file then press Shoft and double-click, if all goes well the workbook will open without running any macros (safe mode like)
    Open a new workbook
    then open the VBA editor and drag the module to this new workbook.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. On Button Click Run A Module Then Wait Till Complete Then Run Another Module...
    By Ourkid123uk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2019, 02:16 PM
  2. [SOLVED] Extra Sheet not a Chart or Old Macro Module or Worksheet - Appears to be normal module???
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-06-2017, 04:10 AM
  3. Compile error in hidden module: Module 1 when workbook opened on different machine!?
    By MathUKTeacher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2015, 04:38 PM
  4. OLE Header Corrupt, OLE Header Structure Corrupt
    By zoomtronic in forum Excel General
    Replies: 1
    Last Post: 11-26-2014, 09:54 AM
  5. [SOLVED] Code locks cells when inserted in sheet module but returns error in standard module
    By yoda66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 07:39 AM
  6. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  7. Corrupt Module? Error 1004
    By aldsv in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2005, 06:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1