+ Reply to Thread
Results 1 to 4 of 4

How to fix Excel’s hanging issues which started recently after a new action

  1. #1
    Forum Contributor
    Join Date
    10-18-2019
    Location
    Mumbai
    MS-Off Ver
    OFFICE 2010
    Posts
    427

    Post How to fix Excel’s hanging issues which started recently after a new action

    Recently, I have started facing ‘troubling issues’ with my Workbook getting ‘hanged’, Worksheets flickering & the arrow cursor turning in to a blue spinning ball. These issue remains for a specified time period I.e it starts when now>= 07-25-2022 9:15:00 AM & remains up to now<07-25-2022 10:00:00 AM i.e. from 9:15 till 10:00 whenever the Workbook is kept opened. As soon as now>=10:00, all these ‘troubles’ vanishes & the all ws in the Workbook functions normal.

    Here I need to mention that all these ‘troubling issues’ with my Workbook started from the time I inserted a new Worksheet (in this same Workbook) & in the Module I pasted a ‘new vb code’.

    I also found that when I delete the ‘new vb code’ from the Module & use the remaining Workbook, these ‘troubling issues’ vanishes.

    The new vb code has a For Next loop whose counter is “i”. The lines of this new vb code are:

    Please Login or Register  to view this content.
    For another 12 ws, I am using a code pasted in ThisWorkbook which has the vb code:

    Please Login or Register  to view this content.
    My query is;
    1. Is the same variant being used in both codes causing these ‘troubling issues’, if yes, what is the remedy?
    2. Should I make the counter “i” in the new vb code Worksheet specific i.e. its action should remain confined to the new ws only? If yes, how to make it confined to the new ws only?
    3. Any other help so that I can get rid of the new ‘troubling issues’?

    Any help provided would be appreciated.

  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,447

    Re: How to fix Excel?s hanging issues which started recently after a new action

    1. Is the same variant being used in both codes causing these ?troubling issues?, if yes, what is the remedy?
    2. Should I make the counter ?i? in the new vb code Worksheet specific i.e. its action should remain confined to the new ws only? If yes, how to make it confined to the new ws only?
    3. Any other help so that I can get rid of the new ?troubling issues??
    1. I don't know what this means. The Workbook_BeforeSave code will only be executed when the workbook is saved. So, do you save the workbook in code elsewhere?
    2. The variable is defined within the Workbook_BeforeSave routine. There is no indication if, where, or how the variable i is defined in the new code. However, by default, it will be local to the new code.
    3. You are not showing any code that appears to relate to dates and times so it is not obvious where this causes issues.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    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
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: How to fix Excel?s hanging issues which started recently after a new action

    Quote Originally Posted by bittubadri View Post
    Any help provided would be appreciated.
    Take advantage of the fact that you will attach your file and explain to us what you wanted to do with what you call "new vb code" because it seems that it is not well programmed.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to fix Excel?s hanging issues which started recently after a new action

    Maybe try to remove the line
    PHP Code: 
    n=n-
    in the new vb code
    Quang PT

+ 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. Send reminder emails for action items to action owners via Excel VBA to outlook
    By Ravisca2003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2019, 10:26 AM
  2. Hi all, have recently started new job as a school Data Manager.
    By pbentonh in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-11-2017, 12:32 PM
  3. Hello I have recently started using Macros to assist with a project
    By Mark McG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2014, 06:06 AM
  4. Excel hanging on closure
    By Cameronl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2009, 08:55 AM
  5. Sorting Columns (just started having issues)
    By DanMnz in forum Excel General
    Replies: 1
    Last Post: 08-01-2007, 12:08 PM
  6. OLE Action Issues
    By speedoflight in forum Excel General
    Replies: 1
    Last Post: 06-23-2006, 03:45 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