+ Reply to Thread
Results 1 to 7 of 7

Save As macro keeps crashing excel program

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Victoria, Australia
    MS-Off Ver
    2010
    Posts
    4

    Save As macro keeps crashing excel program

    Hi,
    I’m wondering what I’m doing wrong here.

    I have a Macro designed (not mine) to pick up a person’s name in cell A2 and “save as” when someone choses to save the template.

    This macro works in that a file is saved in the right drive under the name in cell A2 however it also crashes the excel program (Excel 2010).

    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: EXCEL.EXE
    Application Version: 14.0.4756.1000
    Application Timestamp: 4b9c08e8
    Fault Module Name: EXCEL.EXE
    Fault Module Version: 14.0.4756.1000
    Fault Module Timestamp: 4b9c08e8
    Exception Code: c0000005
    Exception Offset: 00041e17
    OS Version: 6.1.7601.2.1.0.256.48

    I’m assuming it’s a security thing (might not be) but if other users have to enable security each time they use this file it will be useless. I’m trying to design for users that have current issues in manually choosing the “save as” function let alone the skills for disabling security settings.

    Can someone please give me some guidance

    Please Login or Register  to view this content.
    Regards
    Graeme

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: Save As macro keeps crashing excel program

    You are saving a file in the BeforeSave event handler. The code will, therefore, loop ... presumably until it crashes and burns ...

    Try:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-04-2015
    Location
    Victoria, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Save As macro keeps crashing excel program

    Hi TMS,
    thanks for your very fast reply.

    gave it a try and same outcome it saved name in A2 but crashed the program - this time a different event name

    Problem signature:
    Problem Event Name: BEX
    Application Name: EXCEL.EXE
    Application Version: 14.0.4756.1000
    Application Timestamp: 4b9c08e8
    Fault Module Name: unknown
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 0016afb4
    Exception Code: c0000005
    Exception Data: 00000008

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: Save As macro keeps crashing excel program

    Don't really know. What's in A2?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,336

    Re: Save As macro keeps crashing excel program

    Maybe try running the Excel diagnostics too.

  6. #6
    Registered User
    Join Date
    03-04-2015
    Location
    Victoria, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Save As macro keeps crashing excel program

    Hi TMS

    A2 is just the cell the "save as" is getting the file name from (name of person)

    I'll try the diagnostics.

    Thanks for your help - much appreciated

  7. #7
    Registered User
    Join Date
    03-04-2015
    Location
    Victoria, Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: Save As macro keeps crashing excel program

    OK
    This is officially driving me nuts
    The file will ‘save as’ but the program crashes…


    Problem signature:
    Problem Event Name: BEX
    Application Name: EXCEL.EXE
    Application Version: 14.0.4756.1000
    Application Timestamp: 4b9c08e8
    Fault Module Name: unknown
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 0029ae24
    Exception Code: c0000005
    Exception Data: 00000008
    OS Version: 6.1.7601.2.1.0.256.48
    Additional information about the problem:
    LCID: 1033
    skulcid: 1033



    the only other macro to this file is
    Please Login or Register  to view this content.
    is it at all possible that these 2 macros are conflicting?

+ 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 to Copy Sheets and Save As New Workbook Crashing Excel
    By JamieAtJack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2012, 08:19 PM
  2. Program crashing whilst accessing outlook
    By tryer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2012, 03:14 PM
  3. single excel document crashing program
    By slackerhacker in forum Excel General
    Replies: 1
    Last Post: 03-11-2011, 10:37 PM
  4. can I save if excel is currently crashing
    By dmalloy8 in forum Excel General
    Replies: 0
    Last Post: 08-22-2010, 09:13 PM
  5. Excel spreadsheet keeps crashing on save
    By Scotts Neil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2007, 07:44 AM

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