+ Reply to Thread
Results 1 to 5 of 5

Macro is crashing Excel 2010

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro is crashing Excel 2010

    I have a macro that is setup like this (see below). When running the macro, it causes excel 2010 to crash. I have commented each line out and it is the ActiveWorkbook.close line that is causing the problem. Currently I just have to manually close the workbook. Why would Excel 2010 not like this line of code?
    Please Login or Register  to view this content.
    Last edited by kahss33; 11-15-2011 at 09:52 AM. Reason: add code tags

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macro is crashing Excel 2010

    Hi, and welcome to the forum.

    Is the code in that workbook? Does this fare any better:
    Please Login or Register  to view this content.
    Note: I added code tags to your post as it's your first post. Please learn to use them when posting code in future.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Macro is crashing Excel 2010

    It may not have anything to do with your problem, but I kept having a workbook crash on me and I realized that I had two macros with same name.

  4. #4
    Registered User
    Join Date
    11-15-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro is crashing Excel 2010

    Yes, the code is contained within the workbook.

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macro is crashing Excel 2010

    How are you calling the code and did you try my version (if so, did it have the same issue)?

+ Reply to Thread

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