Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox cancels "Step Into" Mode!

I don't get it. I am just trying to debug a macro. So I press F8 to initiate
the "Debug - Step Into" mode, and everything is working as expected until I
hit a MsgBox statement that just displays a message and an OK button. As
soon as I press the OK button, VBA seems to 'forget' that I was in Step Mode
and just takes off and runs the rest of the macro. Anyone have any idea what
could cause this?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default MsgBox cancels "Step Into" Mode!

Put a break point (click on the left margin or right
click-Toggle-Breakpoint) on the line after the Msgbox line

--
Chris Farkas
Excel/Access Developer
http://www.eAlchemy.biz


"Kip Martin" wrote:

I don't get it. I am just trying to debug a macro. So I press F8 to initiate
the "Debug - Step Into" mode, and everything is working as expected until I
hit a MsgBox statement that just displays a message and an OK button. As
soon as I press the OK button, VBA seems to 'forget' that I was in Step Mode
and just takes off and runs the rest of the macro. Anyone have any idea what
could cause this?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox cancels "Step Into" Mode!

I've never heard of that before, but the first thing I would do would be to
use Rob Bovey's Code Cleaner add-in to purge VBA's own code storage and
recreate it from scratch. You can get Rob's Code Cleaner at
http://www.appspro.com/Utilities/CodeCleaner.htm


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Kip Martin" wrote in message
...
I don't get it. I am just trying to debug a macro. So I press F8 to
initiate the "Debug - Step Into" mode, and everything is working as
expected until I hit a MsgBox statement that just displays a message and an
OK button. As soon as I press the OK button, VBA seems to 'forget' that I
was in Step Mode and just takes off and runs the rest of the macro. Anyone
have any idea what could cause this?





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
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 1 March 11th 07 10:38 AM
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 2 March 10th 07 05:10 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM
shortcut key to see a macro running "step by step" al007 Excel Programming 1 November 10th 05 10:18 PM


All times are GMT +1. The time now is 04:04 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"