Consulting

Results 1 to 5 of 5

Thread: Macros crash Excel

  1. #1
    VBAX Contributor
    Joined
    Mar 2009
    Location
    Porto, Portugal
    Posts
    180
    Location

    Macros crash Excel

    Hi
    Here's a thing that occurs to me frequently.
    Most of my Excel files have macros. All of them work fine everytime I make them run once.
    However, if I make them run twice or more times, it will freeze Excel (not respond msg) that I have to close it and open again.

    Is that a way to prevent that?
    Or is it a software problem?

    Thanks in advance.
    Ioncila

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Sounds like a problem with your code, or an environment problem.

    Not enough information to say anything more more specific.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    One thing to try is to use Rob Bovey's very excellent code cleaner

    http://www.appspro.com/Utilities/CodeCleaner.htm

    It solves a lot of problems for me

    Paul

  4. #4
    VBAX Expert
    Joined
    Sep 2010
    Posts
    604
    Location
    If your looping and changing any row heights or column widths I once had adding ActiveSheet.DisplayAutomaticPageBreaks = False to the sheet activate event solve that issue for me.

  5. #5
    VBAX Contributor
    Joined
    Mar 2009
    Location
    Porto, Portugal
    Posts
    180
    Location
    Thanks for your suggestions.
    I will try them and give you feedback

    Ioncila

Posting Permissions

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