+ Reply to Thread
Results 1 to 3 of 3

Help, Constantly Corrupted VBA Enabled Workbooks

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Help, Constantly Corrupted VBA Enabled Workbooks

    Hello,
    I keep having a problem with Excel VBA enabled workbooks becoming corrupted and stuck in the loop of Excel crashing and attempting to repair them. It has made VBA a nightmare to use especially after spending so much time updating and making changes. This happens whether I have a formula coded using the help of forum members or recording macros in Excel.

    Any help with this and what I am doing wrong or can improve or fix would be greatly appreciated. I find this happens with almost every VBA workbook, to the point where I have to create backups constantly in order to preserve my work knowing that soon the workbook will become corrupted. These aren’t large workbooks either, probably about 5MB on average.

    Once again, any help would be greatly appreciated. Thank you

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Help, Constantly Corrupted VBA Enabled Workbooks

    Hi artist,

    Make sure you have the latest version of Excel as some of the words may not be understood by earlier versions.
    Hanging VBA code is a problem I have when things get stuck. I try to make my code fast by turning off things that might make your code work. Application.EnableEvents = False is one of the things that keeps me on my toes. If my code stops, due to an error, and I've disabled Events, when I go back and write more code and try it, I first need to turn those Events back on.

    I've also noticed that before running new code, you should Debug->Compile first. If you try to run code that gets lost, this might be part of your problem.

    Some code just takes longer to finish. If you use a lot of User Defined Functions they also might take a long time and look like a hang.

    We'd need more info to really nail down what might be a better answer. I think a good debug site might help at: http://www.cpearson.com/Excel/DebuggingVBA.aspx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Help, Constantly Corrupted VBA Enabled Workbooks

    Hi Marvin,
    Thank you very much for all of your help and advice. I'm going to look into all of this a report back. Thank you again.

+ 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. [SOLVED] Corrupted Microsoft Excel Macro-Enabled Workbook xlsm file
    By YOROD in forum Excel General
    Replies: 8
    Last Post: 03-26-2020, 01:58 AM
  2. [SOLVED] Saving Macro-Enabled Workbooks.
    By raffyjavellana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2015, 02:01 AM
  3. Replies: 2
    Last Post: 05-20-2015, 06:37 AM
  4. Replies: 0
    Last Post: 11-21-2014, 09:25 AM
  5. [SOLVED] Merge two Macro-Enabled Workbooks into one?
    By excellenthelp in forum Excel General
    Replies: 3
    Last Post: 05-28-2014, 06:37 PM
  6. [SOLVED] Saving Macro-Enabled Workbooks
    By Paschen in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:29 AM
  7. Replies: 0
    Last Post: 08-07-2012, 02:19 PM

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