Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2006, 11:13 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XL VBA Compile - what occurs - why crash

I have an intense VBA "macro" that has a user form and gathers a bunch of data from the user, then manipulates and saves the data (using INI files) then opens a Viewer spreadsheet and allows the user to export the final reports to yet another Excel spreadsheet (removing the overhead of the VBA code).

Suddenly in development the main program causes a "fatal error" and shuts down Excel. If I re-open and DISABLE macros and save and reopen - it works. If I compile and save and open it crashes.

Interestingly the Viewer does the opposite it crashes if I don't compile and works if I do.

My question is what exactly does compiling do that appears to wreak havoc on these two files?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to handle error or exception if it occurs popoxinhxan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 August 27th, 2006 06:44 PM
Copying Xl sheet from one Xl file to another kesavan Excel VBA 1 July 3rd, 2006 10:11 PM
XL/VBA:Why do I get this error(Range.FormulaR1C1)? PaLPiTaTioN Excel VBA 3 January 3rd, 2005 08:27 AM
Cr8 & Stored procedure ..Crash ..Crash swissaKM Crystal Reports 0 January 2nd, 2005 06:02 AM
How to know when an exception occurs? ecobo C# 2 December 30th, 2004 04:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.