Consulting

Results 1 to 3 of 3

Thread: Excel VBA crashes

  1. #1

    Excel VBA crashes

    Hello out there,

    I have built some VB code to manipulate data . For maintenance purposes I hav put the code in one workbook, and the data and buttons referring to the macros in another.

    On windows this works fine (from win95/office 97 up to XP / office 2003)

    Running the same pair on a MAC (Office 2004 for Max, OS 10.4) results in a crash. not immediately, but as it seems as soon as the code containing book saves itselves.

    from then on it just starts up ans crashes on every action that calls a macro.
    When in debug mode, is suddenly (meaning at unknown event) states "Data invalid" won't show the VB code anymore and crashes on next occasion

    simply opening the book on windows ans saving it solves the problem, for a while...
    (books stored on a network drive, but local copies suffer the same problem)

    it looks as if the code is overwriten?

    HELP anyone with a hint (or solution )

    I didnot place code, since there is a lot of code, and no specific place where it crashes. When in debug mode, it just does not start up the code window, it simply crashes and restarts. if one opens the code pages then it looks truncated, or it states "invalid data" and stops on every action.

    There are no event handlers active in my code.

  2. #2
    VBAX Mentor tpoynton's Avatar
    Joined
    Feb 2005
    Location
    Clinton, MA
    Posts
    399
    Location
    If you cant post the code, can you post a sterile workbook? I can pretty safely say that no code to review will greatly diminish your chances of solving the problem.

  3. #3
    Mac Moderator VBAX Expert shades's Avatar
    Joined
    May 2004
    Location
    Kansas City, USA
    Posts
    638
    Location
    It would be surprising to work on Excel 95.

    But even more, if it works on XL 97, then that is the same code base as VBA for Mac, and generally what is written to work on XL 97 can work or be adjusted to work on Macs.

    Software: LibreOffice 3.3 on Mac OS X 10.6.5
    (retired Excel 2003 user, 3.28.2008 )
    Humanware: Older than dirt
    --------------------
    old, slow, and confused
    but at least I'm inconsistent!

    Rich

Posting Permissions

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