Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel crashes

ResolvedVersion 2003

Harry has attended:
Excel VBA Intro Intermediate course

Excel Crashes

I've got a program that writes an array formula to 24000+ records one column at at time, then hard pastes it before moving to the next column. If I execute the program one line at a time using the F8 key it runs but if I run it in the normal way it crashes.

RE: Excel Crashes

Hi Harry

Without seeing the code and observing the crash as it happens I cannot give a reason why it is doing it.

Please send me a copy of the workbook to

forum AT microsofttraining,net

Regards

Carlos

RE: Excel Crashes

Thanks for your response Carlos. I suspect that the problem is that the file is just too big (although I would have thought that it would also crash on debugging).

I've sent the code to the email above for your attention.

The data in the worksheet is part of a large download from a relational database and contains 4 separate tables, pupils on roll, pupils off roll, attendance data on pupils on roll and attendane data of pupils off roll.

The macro takes the field required from the pupils on roll data and puts it in the output sheet and then appends the equivalent columns from the pupils off roll table. It then adds in both the attendance tables to the 'all absence' sheet.

all of the above runs fine. The problem occurs when the macro copies an array formula down a column of data. This takes place in the do while loop contained in the add_absence macro.



 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Use the Ctrl-key for quick navigation in Excel 2010

If you want to move quickly to the right, left, top or bottom of your spreadsheet, just press Ctrl and one of the arrow keys. If you want to then select all the data in that particular row or column, hold down the Shift key and press Ctrl and an arrow key.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.