+ Reply to Thread
Results 1 to 9 of 9

Excel Crashes after saving when Macro was used.

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    Lugano, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Question Excel Crashes after saving when Macro was used.

    Hello all,

    I have a huge problem. I have a rather big macro in my workbook. I open the xlsm file...all is well... i run the macro and it works ok. But if i end the macro and safe the file something screws up. On the next opening of the xlsm file, as soon as i try to run the macro... Excel crashes!!! No explanation, no error message!

    I would be greatfull for any help!!!!
    Attached Files Attached Files
    Last edited by prohmex; 08-20-2013 at 11:13 AM.

  2. #2
    Registered User
    Join Date
    08-15-2013
    Location
    Lugano, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Excel Crashes after saving when Macro was used.

    I have tried Several diferent things regarding having the initial sheet in view when saving but that dosent solve anithing.
    As i am very new to Excel and VBA i have spent over 220 hrs. on this project, and i am pretty desperate.
    If anyone has an idea of what could be the problem... please let me know.

    All code should be plane... no activeX only plane code.

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Excel Crashes after saving when Macro was used.

    Hello prohmex,

    And if you try it as per the attached WorkBook?

    You may also click on the *(Star) to the far left at the bottom of this post, to add to my Reputation.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    08-15-2013
    Location
    Lugano, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Excel Crashes after saving when Macro was used.

    First of all thanks for your help Winon. It is very very much apreciated!!!

    With your file the same thing happens. I open it... it works perfect... the macro works perfect.... i close the macro and save the file. On next opening the workbook opens but as soon as i click on the start userform button excel crashes!!!
    The only diference is that this time after the 3th try it gave me an automation error before crashing.
    I also tryed to update my Office Pro. Because i read that it could be because of a missing service pack....but nop.

    Here is your file... maybe you can see what my excel has done to it.

    AV_Macro_Winon_copy.xlsm
    Last edited by prohmex; 08-20-2013 at 03:24 PM.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Excel Crashes after saving when Macro was used.

    I think that the UserForm's Initialize Code is too long. You should try to find a way to break it down into Macros maybe. It could also relate to available RAM on your operating system. Close all other applications that may be running, exit the Internet and Excel, and then try again, with Excel only running.

  6. #6
    Registered User
    Join Date
    08-15-2013
    Location
    Lugano, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Excel Crashes after saving when Macro was used.

    Thanks Winon,

    I did think of braking down the UserForm's Code in to multiple UserForms.
    But the UserForm really looks great this Way.
    As for my system RAM if got 16Gb DDR3 installed and with all programms running it uses about 4,5Gb including Excel with running macro.
    The strange thing is that the error only ocurres after using the macro and saving the excel Workbook. As soon as you re-open the Workbook and try to run the macro again... bye bye... excel. Even if i only open and close the macro without any modifications or changes.

    But i thank you very much for your support Winon.
    Last edited by prohmex; 08-20-2013 at 04:00 PM.

  7. #7
    Forum Contributor
    Join Date
    03-14-2012
    Location
    location
    MS-Off Ver
    Excel 2007
    Posts
    170

    Re: Excel Crashes after saving when Macro was used.

    Hi,
    an option is to make 3 userforms, 1-st Order Management, 2-nd Print Manager, 3-rd Product and Price and call them when you need to to some stuff right there...it's just a thought!
    blue

  8. #8
    Registered User
    Join Date
    08-15-2013
    Location
    Lugano, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Excel Crashes after saving when Macro was used.

    Hey blue.chio,

    Thanks for your post.
    I will probably have to try it that way. The down side to it is lots of changes and copy past work. The upside might be that, that way i find out where my error is sitting. Maybe that way i can narrow it down to a single userform that crashes aswell. Then at least i know where to look.

    Thanks...

  9. #9
    Forum Contributor
    Join Date
    03-14-2012
    Location
    location
    MS-Off Ver
    Excel 2007
    Posts
    170

    Re: Excel Crashes after saving when Macro was used.

    it's just an attempt and ...I think it works, I have not received any error in 5 open/run/close...yeah, you need to rewrite the code!
    hope it helps you!

    edit: wrong file, sorry!
    Attached Files Attached Files
    Last edited by blue.chio; 08-20-2013 at 05:01 PM.

+ 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] Excel 2007 crashes upon saving
    By JM967 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-23-2013, 08:40 PM
  2. Excel 2011 Macro Crashes after Saving File
    By tpeters74 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2013, 03:41 AM
  3. After saving the spreadsheet and then running the macro, Excel crashes
    By hydronicengr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2012, 08:03 PM
  4. Excel Crashes when saving after running macro
    By msmithdynamicsgp in forum Excel General
    Replies: 0
    Last Post: 10-24-2011, 12:16 PM
  5. Excel 2000 crashes when saving
    By Jonny Two Shoes in forum Excel General
    Replies: 1
    Last Post: 04-16-2008, 03:50 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