VBA Code: excel is hanging at some point

  • Hi,
    While I am executing the attached script, excel is hanging at some point (Data For AAX7 / Data For AAX8). Please let me know what can I do to avoid this scenario. Your help on this issues is much appreciated.


    I think this issue is happening at the time of copying the data after filtering. It looks like, It has lot many rows to copy and paste; may be that's why it is hanging. More over when I am executing the each line step by step I am not getting any issue.





    Regards,
    Sri

  • Re: VBA Code: excel is hanging at some point


    why don't you array formula instead of repeating this:

    Code
    Criteria1:=Array("KAX1", "KAX2", "KAX3", "KAX4", "KAX5", "KAX6", "KAX7", "KAX8", "KAX9")
  • Re: VBA Code: excel is hanging at some point


    Both the way you can complete your task, please try.


  • Re: VBA Code: excel is hanging at some point


    Hi,
    First Function of the code (Test) is working fine. But When I am a particular filtering the combination (KAX7,0 and KAX9,0) of data data sum of all the rows should come as zero. Because as there is no data for KAX7 and KAX9. But I am getting KAX6 sum to KAX7 and KAX8 sum to KAX9. I think, I just need to clear the cells before next combination is getting added and Copied over. Please suggest me on this.


    Thank you so much for your help.



    Regards,
    Sri

  • Re: VBA Code: excel is hanging at some point


    I have added two extra line in the code and this should work, please try.


  • Re: VBA Code: excel is hanging at some point


    I have added two extra line in the code and this should work, please try.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!