Solved

Excel crashes when macro executed

Posted on 2012-12-21
6
506 Views
Last Modified: 2012-12-21
Hi Experts!

I am having trouble with my laptop crashing - getting the message "Microsoft Excel has stopped working....". It does it most often when I am working in the attached Excel VBA. Any ideas?
Finding-19-Macro-for-EE.docx
0
Comment
Question by:DMKetcher
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:redmondb
ID: 38713929
Hi, DMKetcher.

Can you post a copy of the file, please? I assume that you will need to redact the data, but please check that the file still crashes.

Thanks,
Brian.
0
 

Author Comment

by:DMKetcher
ID: 38714324
This works by having both input and output spreadsheets open and switching to the output spreadsheet when it is asked for.
Ineligible-Sites-Transpose-Input.xlsm
Ineligible-Sites-Transpose-Outpu.xlsx
0
 
LVL 26

Accepted Solution

by:
redmondb earned 500 total points
ID: 38714463
Thanks, DMKetcher.

The XLSM is corrupt, so please see the attached rebuild and let me know how it behaves. (BTW, I've renamed column A  - I'll explain later.)

Edit: I reloaded the file - this version includes the necessary ADO 2.5 Library reference. (Well, for Excel 2010 - it may need to be changed for other versions.)

Regards,
Brian.Ineligible-Sites-Transpose-Input.xlsm
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:DMKetcher
ID: 38714533
Perfect - Thank you!
0
 

Author Closing Comment

by:DMKetcher
ID: 38714538
Thank you! I changed I.D. to ID. Am I not allowed to use SSN or is it just too risky for internet business?
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38714553
Thanks, DMKetcher.

OK, explanation time - why did I change "ID" to "I.D."? The file was corrupt so the first step in recreating it was to save it as CSV (so that the corruption would be removed). However, there's a funny/bug/whatever in Excel that treats any file starting with "ID" as a SYLK file. So, to avoid any issues, I renamed the column.

Am I not allowed to use SSN or is it just too risky for internet business?
Sorry, I don't understand what you mean. If this is still about column A then it really doesn't matter whether you call it "ID", "I.D." or "SSN" - as long as you don't save it as a CSV.

Regards,
Brian.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now