+ Reply to Thread
Results 1 to 4 of 4

Macro works....but CRASHES!

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Alaska, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro works....but CRASHES!

    Hi everyone,

    I've been using this site for YEARS; it's been a GODSEND! I've always been able to find my answer by searching. I finally had to register to ask a question (:

    I have a macro that does many things - it takes data from the active workbook and creates a new workbook for each unique value. But it also asks which column to use for the sort (because incoming worksheets are different), asks for the range, asks for the storage location, and renames the new workbooks based on the sort criteria and active workbook's name.

    I'm loathe to mess with the macro because it does so many things.....but it also crashes my computer EVERY time I run it.

    My goal is to take multiple reports received every month (that have varying formats and data) and break them up into individual workbooks based on the one column of values (the item code) they will all have in common.

    Please forgive if I've attached the excel file incorrectly? I tried to imbed the code but it was too long.

    If you could look at this and let me know if it's possible to streamline it to stop it from crashing my computer, that would be wonderful.

    Thanks in advance!Macro.xlsm

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro works....but CRASHES!

    Does the crashing happens only after asking all those questions you have mentioned?

    Could be because of this line:
    Please Login or Register  to view this content.
    Seems like it's trying to open the folder where the workbook is saved to. Try commenting this line out and run the macro again, does it still crash your computer?

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    Alaska, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro works....but CRASHES!

    Thank you for taking the time to look at this! I appreciate your help!

    I did as suggested and deleted the line...no luck, still works but still crashes.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro works....but CRASHES!

    Ok, then you probably need to debug it and see where did the crash happen.

    If I were you, I would add in MsgBox's throughout the code, then see what is the last MsgBox that run before crashing happens.

    Are you able to try running it on another computer too?
    Last edited by millz; 10-17-2013 at 09:07 PM.

+ 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 crashes at value '=
    By axisambrosia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 06:51 AM
  2. Code works in Windows excel 2003 and 2010 but crashes in Mac excel 2011
    By kiweed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2012, 08:46 PM
  3. [SOLVED] Userform1 runs, all code works as it is required, but when i close it, Excel crashes
    By Spyderz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-28-2012, 02:34 PM
  4. [SOLVED] Macro works but crashes Excel 2010
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-09-2012, 08:49 AM
  5. Code Crashes Excel 2010 but works in Excel 2003
    By aaronf316 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2011, 03:46 AM

Tags for this Thread

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