+ Reply to Thread
Results 1 to 2 of 2

VBA Macro causes excel to crash

  1. #1
    Registered User
    Join Date
    10-20-2015
    Location
    Philadelphia,PA
    MS-Off Ver
    2013
    Posts
    31

    VBA Macro causes excel to crash

    The macro I am currently writing in excel VBA has the problem of causing the entire excel workbook to crash on some occasions while having no crash effect on other occasions. In between running the macro and having it crash/not crash I will make tiny changes to the code which could "cause" the macro to crash, but when I restart excel and make the changes again, the macro runs smoothly without crashing. Would anybody be able to help me out and see if there is a loop or something that I am not closing or a coding error I am doing? I am not used to coding in VBA so I'm not completely sure of all the nuances.

    Please Login or Register  to view this content.
    Also at the end of my code where I have the single sided page printing code,(The part with Dim i as long, for i=1..........) "commented", out, is there a way to fix this so that it will only print when I want it to print instead of whenever I run the code WITHOUT, having to comment out that entire portion of code whenever I just want to run the code?
    Last edited by BoundToExcel; 10-21-2015 at 10:21 AM.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: VBA Macro causes excel to crash

    Maybe this.

    Please Login or Register  to view this content.

+ 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. Macro causing excel to crash
    By bradleyandrewdavis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-16-2015, 04:29 AM
  2. [SOLVED] Excel Crash On Second Loop in Macro
    By skywlker32 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 08:32 AM
  3. Excel Crash On Second Loop in Macro
    By skywlker32 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 09:31 AM
  4. [SOLVED] beforesave macro causes excel to crash
    By carrob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2012, 10:06 AM
  5. Excel crash while enabling macro
    By SoftwareTester in forum Excel General
    Replies: 4
    Last Post: 08-03-2008, 10:05 AM
  6. Excel crash - bug macro?
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2005, 06:55 AM
  7. Excel VBA macro crash
    By Patrick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2005, 11:05 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