Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Microsoft Excel Has Stopped Working at End of VBA Code

$
0
0

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


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>