Results 1 to 2 of 2

Thread: [RESOLVED] Program work fine when stepping through, but hangs otherwise

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Posts
    103

    Resolved [RESOLVED] Program work fine when stepping through, but hangs otherwise

    I have written a fairly simple VBA program for Excel. When I step through the code, in the debugger, it works just fine and does what it is supposed to do. However, if I remove the breakpoints and just tell the function to run, it hangs. When I look at the task manager, Excel is using 13% of the CPU and the function never returns.

    The only 'unusual' thing the function is doing is calling a Print command. Other than that, it is doing simple string manipulation on data that has been read into the function. What can I try to resolve this? I have attached the file in case anyone wants to look...
    Attached Files Attached Files

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Posts
    103

    Re: [RESOLVED] Program work fine when stepping through, but hangs otherwise

    When I got away from the computer and thought about this, I realized that there is a logic bug in the code and the program is, properly, infinite looping...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width