Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default XL2003 VBA: Debuging...can not break or run in break/step mode.

Hello all,

Something got jacked up on my system last night. I was trying to Break
([Ctrl] + [Pause/Break]) into some long running code so I could step through
it. I also set up "Break When Value Is True" watch as well. When I tried
to break into the code, I was expecting to see the dialog box with the "End"
& "Debug" buttons on it, but nothing....maybe the VBE & XL went into a temp
"Not Responding" state, but recovered. After code is finished
running/recovered from temp "Not Responding", all of the open XL files can
be closed and saved, but XL can't be closed. I get a message box that pops
up...something almost exactly like this:

MsgBox("Cannot quit Microsoft Office Excel.", vbInformation + vbOKOnly,
"Microsoft Excel")

....except that I get that generic .exe/"Not Responding" icon before "MS XL"
in the title bar.

Maybe I should mention too, I'm working with a TextStream object connecting
to a large text file. The TextStream gets closed in the code at the end.

Right now if I close everything and kill the XL process in Task Manager,
then open up a fresh XL instance and the file I'm working on, I can start
the sub procedure I'm working on in break/step mode by hitting [F8]. After
hitting [F5] to continue normally, it looks like I can break into the code
normally (only on the first time through) up until my "Break When Value Is
True" watch should be triggered. My break watch does not get triggered
ever, and after that, [F8] won't start step/break mode, it just runs the
code (acts like [F5]). [Ctrl] + [Pause/Break] won't break into the code, it
acts like Stop/Reset.

After the first time through, the code appears to be running normally with
[F5] or [F8], I just can't break into it and step through it.

Does anyone know what is going on here?

Thanks for any help anyone can provide,

Conan Kelly



---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default XL2003 VBA: Debuging...can not break or run in break/step mode.

I somertimes find that I have to break on the worksheet page as well as the
VBA page to get excel to stop. A large worksheet will take time to perform
the updates and you have to stop these updates as well. If you had screen
updates disabled after you stop VBA the screen updates has to complete
before you would of gotten a response.

"Conan Kelly" wrote:

Hello all,

Something got jacked up on my system last night. I was trying to Break
([Ctrl] + [Pause/Break]) into some long running code so I could step through
it. I also set up "Break When Value Is True" watch as well. When I tried
to break into the code, I was expecting to see the dialog box with the "End"
& "Debug" buttons on it, but nothing....maybe the VBE & XL went into a temp
"Not Responding" state, but recovered. After code is finished
running/recovered from temp "Not Responding", all of the open XL files can
be closed and saved, but XL can't be closed. I get a message box that pops
up...something almost exactly like this:

MsgBox("Cannot quit Microsoft Office Excel.", vbInformation + vbOKOnly,
"Microsoft Excel")

....except that I get that generic .exe/"Not Responding" icon before "MS XL"
in the title bar.

Maybe I should mention too, I'm working with a TextStream object connecting
to a large text file. The TextStream gets closed in the code at the end.

Right now if I close everything and kill the XL process in Task Manager,
then open up a fresh XL instance and the file I'm working on, I can start
the sub procedure I'm working on in break/step mode by hitting [F8]. After
hitting [F5] to continue normally, it looks like I can break into the code
normally (only on the first time through) up until my "Break When Value Is
True" watch should be triggered. My break watch does not get triggered
ever, and after that, [F8] won't start step/break mode, it just runs the
code (acts like [F5]). [Ctrl] + [Pause/Break] won't break into the code, it
acts like Stop/Reset.

After the first time through, the code appears to be running normally with
[F5] or [F8], I just can't break into it and step through it.

Does anyone know what is going on here?

Thanks for any help anyone can provide,

Conan Kelly



---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use VBA to Enter Break-Mode? RayportingMonkey Excel Programming 6 July 24th 08 04:29 PM
Break Mode FARAZ QURESHI Excel Programming 1 December 5th 07 04:30 PM
Help with Break Mode Lost and Looking for Help Excel Programming 3 June 1st 06 08:21 PM
Can't enter break mode eugene Excel Programming 0 May 11th 06 09:21 PM
Break Mode query Ron McCormick[_2_] Excel Programming 0 January 15th 04 02:19 PM


All times are GMT +1. The time now is 07:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"