+ Reply to Thread
Results 1 to 5 of 5

Excel - Not responding after VBA running

  1. #1
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    Excel - Not responding after VBA running

    Hi Experts

    I have a just two forms and 2 modules in my excel file. sometimes it runs good and sometimes it breaks and Not responding and I have to restart the excel and I am loosing all my non saved data.

    Please help!!!
    SK

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel - Not responding after VBA running

    You can not restore not saved data, if you attach your file we can help you to find errors in code
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Excel - Not responding after VBA running

    Hi, skhari,

    what about adding a line to the start of the procedures to save the workbook (with a Date/Time stamp) before any further action is taken?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Contributor
    Join Date
    05-12-2012
    Location
    India, Chennai
    MS-Off Ver
    Excel 2003
    Posts
    182

    My WorkBook crashing frequently and I am loosing my recent entries (non saving)

    Hi, Thanks for your reply. That would great if i have some line of code which auto saves the workbook before any further action.
    I don't know the reason why my workbook keep crashing frequently. Please help on this too.

    Attached the workbook for evaluation.
    Thank you for your time
    Attached Files Attached Files

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Excel - Not responding after VBA running

    Hi, skhari,

    simple question from my side: has your workbook worked without any problesm before you introduced API/ClassProgramming?

    Instead
    Please Login or Register  to view this content.
    65536 would be the last row in an xls but I prefer to use
    Please Login or Register  to view this content.
    ApplyBorder isn´t available in the Workbook.

    To add save maybe just go with the UserForm_Activate and insert a line like
    Please Login or Register  to view this content.
    right at the start of that preocedure for any form. Or make it a Sub in a module and call it from there (as well as from the other procedures).

    Ciao,
    Holger

+ 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. excel not responding
    By Bob in forum Excel General
    Replies: 3
    Last Post: 09-17-2018, 02:31 AM
  2. [SOLVED] Excel 2010+ Workbook- running Module1 code – Not Responding
    By xladept in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-13-2013, 04:57 PM
  3. Excel and Outlook become "NOT RESPONDING" when running Macro
    By g1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2012, 03:28 PM
  4. Excel 2007 : Excel Not Responding Help
    By Dave H in forum Excel General
    Replies: 2
    Last Post: 08-21-2009, 04:52 PM
  5. excel not responding
    By ricksimm in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-26-2005, 05:27 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