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.