+ Reply to Thread
Results 1 to 7 of 7

file becomes hang and not responding message shown up

  1. #1
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    file becomes hang and not responding message shown up

    Hi everyone
    I want to SUM data of rows of a column. I write a VBA code for that. It works fine for one column. but as long as i addd formula for another column and run it, the application got stuck and not responding message appears.
    below is the code

    Please Login or Register  to view this content.
    excel error.png

    what would be the issue and solution? kindly guide me

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: file becomes hang and not responding message shown up

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Re: file becomes hang and not responding message shown up

    Thanks dangelor. It is working now
    Could you tell me what does this do
    Option Explicit
    how can i use for loop at this portion because i have more columns to process
    Attachment 715513

    Thanks

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: file becomes hang and not responding message shown up

    Option Explicit forces you to declare variables used in the module.

    See https://docs.microsoft.com/en-us/off...icit-statement

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: file becomes hang and not responding message shown up

    Quote Originally Posted by abdul hayee View Post
    ...how can i use for loop at this portion because i have more columns to process
    Attachment 715513

    Thanks
    Your attachment could not be opened.

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Re: file becomes hang and not responding message shown up

    Hi
    @dangelor i have attached a sample file. Some columns are adding the items and showing the result in Total Row. I want to do this to all the items columns using For Loop.
    Kindly have a look to the file and guide me

    Thanks
    Attached Files Attached Files

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: file becomes hang and not responding message shown up

    Possibly...
    Please Login or Register  to view this content.

+ 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. [SOLVED] Code makes worksheet hang - " Not Responding"
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-23-2016, 03:57 AM
  2. [SOLVED] Message shown at the end when i run MAcro
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-27-2016, 07:58 AM
  3. my excel file hang
    By nasim12w in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2013, 11:20 AM
  4. my excel file hang
    By nasim12w in forum Excel General
    Replies: 2
    Last Post: 12-26-2013, 10:15 AM
  5. Opening ANY file with Macros causes Excel to Hang
    By ERGOTRONIT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2008, 02:32 PM
  6. Saving an Excel file causes one PC to hang
    By Nina in forum Excel General
    Replies: 1
    Last Post: 04-20-2006, 01:15 PM
  7. [SOLVED] excel 2003 always hang when open more than 1 file
    By Ricky Lai in forum Excel General
    Replies: 0
    Last Post: 01-06-2006, 03:35 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