+ Reply to Thread
Results 1 to 10 of 10

Excel not responding, for this code.

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Post Excel not responding, for this code.

    Hi guys,
    While running the following code,my excel is hanging. Not sure, what exactly is the problem, Please help.

    Please Login or Register  to view this content.
    Last edited by dinakar.yadav; 04-10-2014 at 07:35 AM.

  2. #2
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: Excel not responding, for this code.

    Using DO until is the problem? I also got an error, saying, "overflow error '6'). please help

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel not responding, for this code.

    Please use CODE tags when you post code.

    Have you tried stepping through your code, to see where it fails? Is it getting stuck in the Do Until... Loop, due to an unexpected value of variable l, perhaps?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: Excel not responding, for this code.

    Sorry! I am new to the forum, so dint know about the tags.

    Its getting stuck at this point. "Cells(4, k).Value = i * j & "-" & i * (j + 1)". And also when i tried get value of "(Int(l / i) + 4)"
    in the immdediate window, an error pops up saying "overflow, error '6')

    Thanks,
    Dinakar

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel not responding, for this code.

    Open the locals window, pres F8 to step through the code. What is the value of l when the Do... Loop starts?

  6. #6
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: Excel not responding, for this code.

    The range, I am specifying for the value of l is a2:A1000 expecting the value as 90. But its taking the value as 0
    "Row Labels Count of CaseID
    0 1
    1 11
    89 1
    90 1
    Grand Total 15

  7. #7
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: Excel not responding, for this code.

    Also I am not able to see the value of the variable l, when i hover the cursor on the variable l. What could be the reason?

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel not responding, for this code.

    Can you attach a workbook, so I can check what is happening.

  9. #9
    Registered User
    Join Date
    04-09-2014
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    15

    Re: Excel not responding, for this code.

    Olly! issue is resolved! like you said, the range for l was taking few character values,hence the problem. How do i change the tread to solved?

  10. #10
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Excel not responding, for this code.

    Glad we managed to point you in the right direction to fix it Thanks for the feedback.

    To mark thread solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

+ 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] "Not Responding" while code is running... need help with optimizing my code please!
    By dexcee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2013, 12:33 AM
  2. Excel not responding
    By Brohein in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2013, 02:15 AM
  3. [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
  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 is not responding.
    By Rei in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-23-2006, 12:20 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