+ Reply to Thread
Results 1 to 7 of 7

Macro causing excel 2010 to crash

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Macro causing excel 2010 to crash

    I am building a file to track various things at the golf course. One of which being handicap. Part of the file has two tables. One with 20 rows for the score listing and another on another tab for archived scores. I am running a macro to insert a new table row into the first table, copy the then 21st entry into the archive table, then delete the 21st row of the first table. When I tested it first, it ran with no issues. When I plugged more data in and tried it again, it crashed. I can't figure out why or how to fix it. Does the starting cell when recording the macro matter (if the table begins in B2, would it matter if the selected cell is A1 or B2 when beginning the recording of the macro)? Or would the selected cell matter when using the keyboard shortcut to run the macro (in B2 - the first cell of the table, or any other cell in the workbook)?

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro causing excel 2010 to crash

    You're probably going to have to post the workbook or an example that replicates the problem so someone can play with the code.

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: Macro causing excel 2010 to crash

    Fair enough. I will upload something when I get home from work. Thanks

  4. #4
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: Macro causing excel 2010 to crash

    Alright, here we go. I've attached a file. I have recorded the macro I want. I tested it once and it crashed.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: Macro causing excel 2010 to crash

    These are obviously steps I can just do manually, but I'd prefer to run the macro with one keyboard shortcut if I can help it.

  6. #6
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: Macro causing excel 2010 to crash

    Hi Bradley
    I didn't bother trying to figure out what was happening with the recorded code, I made up some code to do what you described in your first post.
    Let me know how it goes
    Cheers

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-22-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    51

    Re: Macro causing excel 2010 to crash

    Thanks. I will give it a run and see. Is that code in the macro now? And where is the starting point I need to be when I want to run it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro causing excel to crash
    By bradleyandrewdavis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-16-2015, 04:29 AM
  2. [SOLVED] object invoked error causing excel to crash
    By edopts in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2014, 12:55 PM
  3. ClearContent Macro causing Excel crash.
    By Phily915 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2014, 12:54 PM
  4. VBA Macro Causing Excel To Crash - Can it Be More Efficient?
    By LoggersAW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2013, 08:49 PM
  5. Macro Glitch Causing Crash
    By Danimagus in forum Excel General
    Replies: 1
    Last Post: 06-06-2005, 02:05 PM

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