Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Error causes Excel to shut down

After experimenting with this code further, I found out that if I run the program that writes code into the Sheet module at some point after the new "REPORT" sheet is created, it runs fine. Why? I don't know, just one of those things I guess

For anyone who is interested, my old code looked like

1. Replace any existing sheet named "REPORT" with a clean on
2. Write a small VBA "on event" program into the sheet module
3. Step 2 successful but fatal error resulted causing Excel to shut dow

Now my code looks something like

1. Replace any existing sheet named "REPORT" with a clean on
2. Do some formatting to the new shee
3. Do some other functions that add data to the new "REPORT" shee
4. Write a small VBA "on event" program into the sheet modul
5. Success - no error

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup causes Excel to shut down FinChase Excel Discussion (Misc queries) 1 July 11th 09 03:09 PM
Excel Fill In not shut off. Shanny Excel Discussion (Misc queries) 2 January 11th 07 04:56 PM
Ignoring code to shut a workbook if it is already shut Cammy Excel Discussion (Misc queries) 1 September 12th 06 06:12 PM
Shut down excel Greg B Excel Discussion (Misc queries) 1 April 26th 05 07:05 AM
Excel instance not shut down Macca Excel Worksheet Functions 0 December 13th 04 03:55 PM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"