+ Reply to Thread
Results 1 to 3 of 3

Vba code corrupted

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    Belgrade,Serbia
    MS-Off Ver
    Excel 2013
    Posts
    33

    Vba code corrupted

    Hi

    After replacing my old PC I'm now unable to open some .xlsm files while others work properly.
    The following message pops up while I'm trying to open some excel files containing macros:
    "We found a problem with some content in file name ..... Do you want us
    to recover as much as we can? If you trust the source of this workbook,click Yes"

    If I click no, blank sheet appears.
    If I click yes, I'm getting the following message:
    "Excel was able to open the file by removing or
    repairing the unreadable content....Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))"


    I tried every solution I could find on this and other forums, but I'm still unable to open those files without excel removing the code.

    1. I uninstall/install Office
    2. I changed the extension of one the problematic files to zip hoping that
    I would be able to copy vbaProject.bin to another .xlsm file in order to extract the code.
    Result= same warning.
    3. I made sure VBA is installed
    4. I tried to repair a file using "Open and Repair"
    5. I tried to change excel security settings
    6. I tried numerous other things which I can't recall because I've been struggling
    with this for over 12 hours now.

    I'm running windows 7 32-bit and excel 2013.

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Vba code corrupted

    as an option, try to open the book in the OpenOffice. Copy the code if he stayed in the new book.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    Belgrade,Serbia
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: Vba code corrupted

    Thanks for your suggestion.

    I've already tried that but couldn't figure out how to make Calc show the Userforms.
    There are more than 100 controls in that specific file and most of the code refers to these controls.

+ 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. Corrupted Formulas
    By melliard5779259 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2014, 07:28 AM
  2. Corrupted file
    By gjjh25 in forum Excel General
    Replies: 3
    Last Post: 05-02-2013, 01:58 PM
  3. corrupted file- result of output of VBA code
    By delaneybob in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-18-2012, 09:41 AM
  4. Recovering code from corrupted workbook
    By tlewis3348 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2009, 09:38 AM
  5. Corrupted spreadsheets
    By Lusani Mulaudzi in forum Excel General
    Replies: 2
    Last Post: 01-08-2009, 06:51 AM
  6. [SOLVED] Corrupted file
    By poul, denmark in forum Excel General
    Replies: 2
    Last Post: 04-24-2005, 04:06 PM
  7. Corrupted Excel
    By erj22 in forum Excel General
    Replies: 0
    Last Post: 04-05-2005, 02:49 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