Microsoft Excel Has Stopped Working at End of VBA Code

I'm using Microsoft Excel Professional Plus 2010.  My code essentially looks up a date in a different sheet, copies it to another sheet in an organized location, and prints to PDF.  If I run the code for a period longer than a couple months ago,
at the end of the VBA code, it states "Microsoft Excel Has Stopped Working", quits, and recovers.
I added in a piece of code at the end to save the workbook, which it does, then it quits.  I can reopen the document and all my work is saved.  There is something going on I can't put my finger on but for some reason it only happens when I'm dealing
with more information than usual (a couple months worth, possibly only 20-30 rows of info).
Any suggestions?  Thank you in advance!
Dan

Hi,
In regarding of the issue, we'd better do some tests to narrow down the issue and find the root cause.
Please copy the file with code to another PC (We'd better use the similar environment) to test.
First, if it works well, this issue might be caused by the Excel or other program in your PC. I recommend we follow this KB to troubleshoot:
http://support.microsoft.com/kb/2758592/en-us
Then, if the issue still exists, we could collect the Event log and App crash dump file to do deep troubleshoot.
Second, if it still crashes Excel 2010 in other PC, it might be due to the VBA code. I suggest you upload the code and post the issue to MSND forum for Excel to get more help.
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards, 
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.

Similar Messages

  • Microsoft excel has stopped working (on model update...).

    Hi eb
    I have chaneged the query of an excel 2013 power pivot model's data source.
    On save an update of the models data is launched.
    Every thing goes well until the very end of data retrieval (around 27 milion records).
    At that point excel crashes with the enoying massage 'Microsoft excel has stopped working'.
    I have looked in windows logs there is just one general massage with nothing in it...
    Where would you go looking?
    File size at 4.5 milion records is 111MB so at 27 milion should be around 666MB...
    TIA!
    Rea

    What version of Excel 2013 do you have installed? 32 bit or 64 bit? It sounds like 32 bit based on your above scenario. When you have excel open, open up task manager and watch your memory usage. 32 bit Excel is capped at 2 GB of RAM, but realistically it
    starts crashing right around the 650 MB to 1.2 GB range. (I've seen it crash anywhere in this range)
    I'd suggest either limiting your query down to pull much fewer rows or installing the 64 bit version of Office/Excel.
    In addition to what SQLBISchmidt has already mentioned, double check that you are only including columns that will actually be used within the Power Pivot model. Be especially careful with columns that have many distinct values (i.e. high cardinality) as
    these can be very costly in terms of memory consumption.
    Do you happen to have any complex calculated column calculations in the table or related tables? This can also cause these kind of issues if it is indeed memory-pressure related.
    You may find this official help article useful in finding a way to reduce the memory footprint of this table: http://office.microsoft.com/en-gb/excel-help/create-a-memory-efficient-data-model-using-excel-2013-and-the-power-pivot-add-in-HA103981538.aspx
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
    Website: nimblelearn.com, Blog:
    nimblelearn.com/blog, Twitter:
    @nimblelearn

  • Microsoft Excel has stopped working

    We are on BW 7.0 and BEx7.0
    I have activated BI Content of InfoCube 0WBS_C11 and all it's SAP delivered Query elements. The InfoCube is loaded with data already.
    When I run the queries in BEx, I got message "Microsoft Excel has stopped working" on the queries which have only one parameter of  "My Controlling Area", If the queries have other parameters like BWS besides Controlling Area, I got"No Applicable Data Found" .
    Please help, thanks.

    We are on ERP Release 604 level 0004 SP SAPKH60404. 
    Office 2007 or lower is the standard for our users.  When Report Painter and Infoset query reports are displayed in Excel view using Office 2010 Excel and the file tab is selected (to save the file), a box with the message 'Microsoft Excel has stopped working' appears. 
    We just discovered this issue and are looking for an answer.  The work around for now is to export a spreadsheet file.

  • Excel 2013 Error - Microsoft Excel has stopped working.

    Just downloaded and installed Office 2013 to my new Windows 8 machine. Every time I try to use one of the Office products I receive the following message:
    Microsoft has stopped working
    A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
    Please advise.  Thanks.

    Hope my experience helps anyone searching for answers to Excel /Word /Office freezing issues.
    I have just fixed frozen Excel & Word applications in Office 2010. This happened
    some 6 years ago and as my memory gets a bit more rusty every year, it took me sometime
    to remember. First instance was with MS XP and Office 2000 - yes, old like me.
    Both instances were with my wife's machine, so you can understand the
    situation. I spent into the early hours search forums like this and trying all
    sorts of fixes that are listed. In the end, the fix that fixed the problem was
    to renew the user profile. That is, register anew user, then transfer all of
    the files from the corrupted user profile to the new profile. Not an easy job,
    but doable for most of us who are technologically challenged.<o:p></o:p>
    If anyone wants to try this, then just remember that there three types of files
    that are not copied over.  The following site gives the process.
    http://windows.microsoft.com/en-NZ/windows-vista/fix-a-corrupted-user-profile
    Remember that Favorites, email messages and contacts also need to be copied over.
    This fix may not necessarily be the solution for everyone's issues with Office applications
    freezing, but it fixed mine.
    I'm now a hero again in my household :)
    P.S. I am still using Office 2000 and it's a great suite of programs. Should still be working after I'm long gone.

  • Excel has stopped working when I try to launch Excel 2013 Powerpivot

    Redirected from the Win 7 forum: (http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/excel-has-stopped-working-when-i-try-to-launch/01460690-abab-495f-ab5f-904f72f88668)
    My system is a Windows 7 machine, 64 bit
    I previously had Excel 2010 32bit with 32 both Powerpivot installed.  However I am currently evaluating 64 bit Excel 2013 with Powerpivot for my company so I uninstalled Excel 2010 and installed an evaluation copy of Excel 2013 64 bit.
    However whenever I launch Excel, enable Powerpivot, then click any of the Powerpivot buttons it gives me an error saying "Excel has stopped working".
    I took a look in the Windows events logs and found:
    Faulting application name: EXCEL.EXE, version: 15.0.4420.1017, time stamp: 0x506741b5
    Faulting module name: mscorwks.dll, version: 2.0.50727.5477, time stamp: 0x5265c8ee
    Exception code: 0xc0000005
    Fault offset: 0x00000000002ba203
    Faulting process id: 0x3e8c
    Faulting application start time: 0x01cf52a7644eda9d
    Faulting application path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
    Faulting module path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
    Report Id: afa4f824-be9a-11e3-94ac-415645000030
    I have tried uninstalling and re-installing as well as doing a Repair on my .net framework, which is the latest version.

    You can go to check the dll file, what's size of this dll file?
    If the file size is 0 byte, you can check the link below:
    http://forums.steampowered.com/forums/showthread.php?t=2735528
    Also you can go to check the disabled items (File->Options->Add-ins->Disabled items->Go) to see if any dll file was disabled.
    In addition, Isn't the latest version of .NET Framework supposed to be 4.0?(Not quite familiar with this)
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee
    the accuracy of this information.
    Wind Zhang
    TechNet Community Support

  • Microsoft Lync has stopped working ... please close the program

    The following error message has displayed when I logon to Windows 7.
    Lync starts up at the same time with Windows:
    This error message shows "Microsoft Lync has stopped working ... please close the program".
    However, Lync is working fine even after I click on "close the program. The detail information on the error message is as below:
    Faulting application name:   UcMapi.exe
    version:                                       
    4.0.7577.0
    time stamp:                               
    4cc138ea
    Faulting module name:         MSVCR90.dll
    version:                                       
    9.0.30729.6161
    time stamp:                               
    4dace5b9
    Exception code:                        c0000005
    Fault offset:                               
    0003b4a8
    OS version:                                
    6.1.7601.2.1.0.256.27
    Locale ID:                                    
    1041
    There are no tangible ill effects, however, I want to know the error reason.

    Hi,
    Please try to uninstall the default Sound Card, VGA Device/Video Card, Graphic Card. Then restart Lync 2010 to test the issue.
    Please try to uninstall the latest Lync 2010 update (especially for the Security Update), then restart Lync 2010.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Append Emails - "Microsoft outlook has stopped working...". Help !

    64 bit
    windows 8.1
    outlook 2013
    acrobat XI (eleven) Pro
    Outlook normal, no add in. Have to run as administrator. Lose search facility and other problems but at least the Add in icon is there.
    Trying to Append files or create using the Add in icon in Outlook (in Administrator mode).
    "Microsoft outlook has stopped working". " Windows is checking for a solution to the problem".
    What's the problem?
    Also unrelated have this message " only one version of outlook can run at same time". Not sure if relevant.

    Hi,
    1. The current version of Acrobat 11.0.09, you check your version, go to Help menu --> About Adobe Acrobat
    2. Append an email to existing pdf, i assume you mean attaching email as pdf to an existing pdf document.
           For that you can follow steps below:
             a. Convert email as pdf, like you know. Once the email get converted to PDF it has portfolio like structure. So you can click on "Open File" like shown in screen shot attached below.
             b. Then how to attach a file with existing pdf you may check steps mentioned in this link: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7ca6.w .html
    ~Ajlan Huda.

  • "Microsoft Lync has stopped working"; Skype for Bu...

    Recently installed Skype for Business and have since been unable to open the application. When launching software, app crashes while loading with error "Microsoft Lync has stopped working".
    Event Viewer reported this error: 
    Faulting application name: lync.exe, version: 15.0.4719.1000, time stamp: 0x552cf129
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x00000000
    Faulting process id: 0x231c
    Faulting application start time: 0x01d09878724cd109
    Faulting application path: C:\Program Files\Microsoft Office 15\root\office15\lync.exe
    Faulting module path: unknown
    Report Id: b09d4ca9-046b-11e5-8f3f-e4115bf03d0b
    I have also attached the DxDiag
    Any assistance would be greatly appreciated. 
    Attachments:
    DxDiag.zip ‏8 KB

    Hi,
    Please try to uninstall the default Sound Card, VGA Device/Video Card, Graphic Card. Then restart Lync 2010 to test the issue.
    Please try to uninstall the latest Lync 2010 update (especially for the Security Update), then restart Lync 2010.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Microsoft visio has stopped working

    Hello,
    I have an error with Microsoft Visio, everytime when open the program, show this error:
    "microsoft visio has stopped working"
    This is the event:
    Log Name:      Application
    Source:        Application Error
    Date:          
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      PC
    Description:
    Faulting application name: VISIO.EXE, version: 14.0.6106.5000, time stamp: 0x4df4946d
    Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7ba58
    Exception code: 0xc0000005
    Fault offset: 0x0002e39e
    Faulting process id: 0x18b8
    Faulting application start time: 0x01cc993d3ff16ca3
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office14\VISIO.EXE
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Thanks

    Sir, i found the most Visio Error from Bluetooth add in , so please try these steps , i hope it works for you :
    (1) Go to C:\Program Files\Microsoft Office\Office12.
    (2) In this folder, right click Visio.exe, and select "Run as Administrator".
    (3) Go to Tools >> Trust Center >> Add-ins.
    (4) At the bottom of the Trust Center dialog box, select Com Add-ins in the manage dropdown and click Go.
    (5) Uncheck "Send to Bluetooth" checkbox.
    (6) Click OK, and Exit Visio.
    Regards,
    MCP | MCTS | MCITP

  • When i print excel file error microsoft excel has stoped working

    When I sent print then I got it one error Microsoft has stopped working

    hey raghu, 
    try to use this tip (from url)
    http://www.justanswer.com/microsoft-office/7087w-every-time-try-print-excell-sheet-workbook-excel.html
    http://cnedelcu.blogspot.co.il/2013/09/top-5-fixes-for-excel-2013-has-stopped-working-word-powerpoint-outlook.html
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • "iTunes has stopped working" towards end of sync with iPod Touch

    Towards the end of the sync with my iPod Touch, iTunes crashes with the message "iTunes has stopped working". I've tried many different things and none of them resolves the problem. Please help meeeee!

    Same exact problem with my iPod Touch ever since updating iTunes to 10.4.1. I've reinstalled iTunes and still no progress. What the ****, Apple?

  • Microsoft outlook has stopped working, close program, windows will check for solution

    outlook 2007, running window 7, office suite home and student 2007
    Outlook starts but then states it has stopped working and closes............
    Please any one help me for solution this problem.
    Email: [email protected]
    Chittagong, Bangladesh.

    Hi,
    Please try to open Outlook in safe mode to check if the problem will continue. To do this, exit Outlook, press Windows key + R to open the Run command, type:
    outlook.exe /safe and press Enter. If the issue would be gone in safe mode, Please disable suspicious add-in in your Outlook to resolve the problem. See:
    http://office.microsoft.com/en-in/outlook-help/enable-or-disable-add-ins-in-office-programs-HA010034127.aspx
    We can also try to create a new mail profile in Control Panel to check the result. To do this, please refer:
    http://support.microsoft.com/kb/829918
    If above didn't fix the problem, please try to run a repair of your Outlook installation and then test the problem again. See:
    http://office.microsoft.com/en-in/help/diagnose-and-repair-crashing-office-programs-by-using-office-diagnostics-HA001234076.aspx
    Hope this helps.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • On Startup, "Microsoft Lync has stopped working"

    I have two user accounts on my home laptop. "Personal" and "Business". I'm self employed and work from home. This way I can actually "leave work" and do other personal stuff on my home laptop.
    Anyway, this error occurs only on the "Business" login. It works fine on the "Personal" user account. So it is some setting or corrupt file or something on the "Business" account. It's not a driver or app.
    Short history. I had the problem come up last week. I backed up all my files. Deleted my "Business" user account. Then re-created it. Lync worked for 6 days. Now it's crashing again. WTH?
    (Sorry, but this is soooo frustrating. Office 365, for our business, has been like we bought a brand new fleet of trucks and they are all breaking down constantly).
    Here's the issue:
    When I start Lync, I get this error. "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
    I tried Control Panel > Programs > Programs and Features > Select "MS Office 365 Small Business..." > Change > Online Repair. Then reboot when complete. That didn't work.
    I tried to completely uninstall Office 2013 via the FixIt (http://support.microsoft.com/kb/2739501/en-us) > Reboot > Reinstall from the OWA, reboot. And, that didn't work.
    Please see
    http://community.office365.com/en-us/f/172/p/255701/784257.aspx#784257 for one suggested solution, which wasn't helpful at all. It's definitely not a driver or program on the laptop.
    It worked perfectly fine for months. Nothing new, really. What's going on?
    More importantly, what can I do to fix it? (In easy-to-understand, step-by-step, please. I'm a real estate professional and small business owner. Not IT guy).
    Thank you,
    Tom Scott
    Thomas Scott Oviedo, FL

    Lisa,
    OMG, where do I start?!
    First, I did post in the Office 365 community and I was directed here, "for a better response".
    Your solution is ridiculous, as is about every one I've been given for Office 365. Here's what it's like.
    My new 2013 Ford EDGE slips out of gear and stalls out multiple times a week. I pull over, take 5 minutes to reboot it, drive a few more miles, and the same thing. Now I'm stranded on a business trip 100 miles from home.
    So, I call the Ford dealership. They give me a 3 page write up how to take the transmission apart, turn an adjustment screw, then put it all back together. Never mind I have a 3 year warrantee and can bring the car in for them to do the work.
    I have uninstalled and reinstalled Office 365 more times than I can count, plus all the other rigmarole in between to fix the multiple issues I've had. I paid good money - over $1,000 for a 1 year subscription - for our business to have Office 365.
    I've wasted thousands of dollars more in lost productivity troubleshooting this piece of $#@! so we can actually get some work done.
    You advertise OneDrive for Business and Share Point Team Sites, "Now up to 1 TB of space". Then you fail to include that the underlying limits of 20,000 items and 10 TB + 500 MB per user, respectively, supersede that. How did I find out? After
    wasting almost 1/2 the work day for an entire week trying to upload all our archive and current, working files to OneDrive for Business and out Team Site.
    If you guys were an automobile or aircraft manufacturer, there would be a carnage of dead bodies everywhere, would be called before Congress, and brought up on criminal charges.
    OK, so yes, I'm upset. I'm upset at being lied to, sold a bag of goods and empty promises, and then expected to fix this stuff myself like a paid employee of Microsoft, not a paying customer.
    Get this right, Microsoft. Honestly, you've done it with Windows 7, Word, Excel, Publisher, and Outlook, to name a few. OneDrive for Business, and now my seemingly unsolvable issues with Lync no matter what MSFT tech support solution I tried, should
    be an embarrassment to you, if not outright fraud to the consumer.
    By the way, I do have a solution that worked. I reset Windows 8 to factory settings using the refresh feature, which precluded me from having to back up and restore all my data files. Then reinstall all the updates, including Windows 8.1, and all my software.
    Then, I had to fix all the OS and software settings to the way I had it. It took most of my Saturday last weekend, but still took less time than continuing to waste it on MSFT TechNet solutions that don't work anyway.
    Thomas Scott Oviedo, FL

  • Microsoft excel 2013 stops working and getting very slow when I work in one file

    I am using windows 8.1 pro in my office and I have excel 2013,
    When I'm working on excel generally there is no problem, but I have an excel file which I work on in it's too slow and stops working, I have also tried to open the same file in another computer which is having the same problem.
    while I was using Office 2010 it was working very fine, I can also share my file with you if you want in order to be checked and resolved.
    I appreciate if you help me,

    Hi,
    You can share the file with us by sending it to GBSD TN Office Information Collection [email protected] Be sure that you have the private information hidden.
    Meanwhile, since it works fine in Office 2010, we can try to open the file in Excel 2010, then go to File > Options > Formulas, check if you have enabled iterative calculation. If so, uncheck the check box and switch the workbook calculation to Manually.
    Then, save the changes and then open the modified excel using Excel 2013 to see the result.
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • HT3983 my microsoft word has stopped working, it says it cannot be opened because of a problem. what can i do?

    My microsoft word cannot be opened, everything else works, excel, powerpoint etc. is there anything i can do apart  from reinstalling?

    Please someone help pleaseeeeee. i have that issue too

Maybe you are looking for

  • GL Data extraction.

    Hi experts, I extracted 0fi_gl_4 data upto dso. I have not created any cube for further extraction. When i went through a document i found that the 0fi_gl_4 data is extracted upto dso only.I know that we can extract upto cube also. But if anyone aske

  • Replace Null With 0 in Pivot Table in a BI Publisher Report (Not OBIEE Answ

    I have a problem with nulls in a pivot table. I got a measure column in my BI Answers analysis and I made a report with a model based in this analysis. When I add a pivot table to my report the 0 measures don't display. In first place I found that th

  • Mac and Windows Vista

    Hi I have a mac mini with OSX 10.4.8. I am looking forward to buy a laptop with windows vista. The reason why I am interested in buying a windows based laptop is because my work environment is windows and windows based laptops are cheaper. Could you

  • My open tabs are not being remembered when I close and re-open Firefox 4 even though I selected this feature in Options.

    My open tabs are not being remembered when I close and re-open Firefox 4 even though I selected this feature in Options. Can anyone tell me why?

  • Crystal Reports 2008 SP2 - Fix Pack 2.1

    I see that Crystal Reports 2008 SP2 - Fix Pack 2.1 has been posted as of 10/26/09.  Anybody know what's in it?  I didn't see a Read Me.  Also, when you download and start to install this, it reports itself as a a Fix Pack for Version 1, but the versi