Results 1 to 3 of 3

An instruction that used to work now crashes my app!!

Threaded View

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    York, PA
    MS-Off Ver
    Excel 97 & Excel 2007
    Posts
    17

    An instruction that used to work now crashes my app!!

    A line of vba code in an Excel application I'm developing - that used to run and execute perfectly - now causes a Fatal Error and shuts down my application when the line executes. This happens whether I execute the code in real time or whether I step through the code using the F8 key.

    I'm assuming the line of code that is crashing my app is (I hope I have used the code embed feature correctly)
    ActiveWorkbook.Close True
    because when I step through the code (F8) everthing runs fine until I execute this line. Anyone know why this sort of thing happens?

    The ActiveWorkbook reference is a workbook that I opened using my vba code.

    I'm using Excel 97 (XP, SP2) and Excel 2007 (Vista) and my app will crash on either.

    Thank you,

    Stu
    Last edited by Stu M; 06-23-2009 at 08:06 PM. Reason: Correct code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1