Solved

Excel crashes when macro executed

Posted on 2012-12-21
6
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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 on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

705 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