Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default mysteriously enters into break mode

Hi all,

I am not sure why, but I have a piece of code that runs fine in all the
users except one. when he runs the code, for some strange reason, the
macro keeps entering into break mode on his PC. But no one else's. The
help said that's because an escape keep is pressed or ctrl break was
press.

I selected clear break point in the vba environment and save the xls
file into Excel 2003 format. We even changed a keyboard for him and it
still enters break mode. Once it enters break mode, I pressed F5, it
would run a few lines of code and enter into break mode again.

I have seen this problem before. I actually seen it in my Access 2003
apps as well. After I pressed F9 it enters the break mode. But once I
clear the break point in my Access app, I re-ran it and it would still
do the same.

Any idea what it would be?

Thanks so much for sharing your thoughts.

Ben


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default mysteriously enters into break mode

Check the break on error option
VBA menu - tools - options - General

"Ben" wrote:

Hi all,

I am not sure why, but I have a piece of code that runs fine in all the
users except one. when he runs the code, for some strange reason, the
macro keeps entering into break mode on his PC. But no one else's. The
help said that's because an escape keep is pressed or ctrl break was
press.

I selected clear break point in the vba environment and save the xls
file into Excel 2003 format. We even changed a keyboard for him and it
still enters break mode. Once it enters break mode, I pressed F5, it
would run a few lines of code and enter into break mode again.

I have seen this problem before. I actually seen it in my Access 2003
apps as well. After I pressed F9 it enters the break mode. But once I
clear the break point in my Access app, I re-ran it and it would still
do the same.

Any idea what it would be?

Thanks so much for sharing your thoughts.

Ben



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default mysteriously enters into break mode

Just a guess, but in the VBE look under Tools, Options, General, Error
trapping:
Do you have Break on Unhandled Errors and does that other user have Break on
All Errors?
That possibly could explain it.

RBS



"Ben" wrote in message
...
Hi all,

I am not sure why, but I have a piece of code that runs fine in all the
users except one. when he runs the code, for some strange reason, the
macro keeps entering into break mode on his PC. But no one else's. The
help said that's because an escape keep is pressed or ctrl break was
press.

I selected clear break point in the vba environment and save the xls file
into Excel 2003 format. We even changed a keyboard for him and it still
enters break mode. Once it enters break mode, I pressed F5, it would run
a few lines of code and enter into break mode again.

I have seen this problem before. I actually seen it in my Access 2003
apps as well. After I pressed F9 it enters the break mode. But once I
clear the break point in my Access app, I re-ran it and it would still do
the same.

Any idea what it would be?

Thanks so much for sharing your thoughts.

Ben



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default mysteriously enters into break mode

Joel,

I will check the user's vbe setting. But the code has no errors though.
Thanks again.

Ben


On 5/8/2009 3:41 PM, joel wrote:
Check the break on error option
VBA menu - tools - options - General

"Ben" wrote:

Hi all,

I am not sure why, but I have a piece of code that runs fine in all the
users except one. when he runs the code, for some strange reason, the
macro keeps entering into break mode on his PC. But no one else's. The
help said that's because an escape keep is pressed or ctrl break was
press.

I selected clear break point in the vba environment and save the xls
file into Excel 2003 format. We even changed a keyboard for him and it
still enters break mode. Once it enters break mode, I pressed F5, it
would run a few lines of code and enter into break mode again.

I have seen this problem before. I actually seen it in my Access 2003
apps as well. After I pressed F9 it enters the break mode. But once I
clear the break point in my Access app, I re-ran it and it would still
do the same.

Any idea what it would be?

Thanks so much for sharing your thoughts.

Ben




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default mysteriously enters into break mode

RB,

I will check the user setting. It's strange because the runs on every
one else's machine without entering into break mode and there's no error.

Thanks again,

Ben


On 5/8/2009 3:43 PM, RB Smissaert wrote:
Just a guess, but in the VBE look under Tools, Options, General, Error
trapping:
Do you have Break on Unhandled Errors and does that other user have
Break on All Errors?
That possibly could explain it.

RBS



"Ben" wrote in message
...
Hi all,

I am not sure why, but I have a piece of code that runs fine in all
the users except one. when he runs the code, for some strange reason,
the macro keeps entering into break mode on his PC. But no one else's.
The help said that's because an escape keep is pressed or ctrl break
was press.

I selected clear break point in the vba environment and save the xls
file into Excel 2003 format. We even changed a keyboard for him and it
still enters break mode. Once it enters break mode, I pressed F5, it
would run a few lines of code and enter into break mode again.

I have seen this problem before. I actually seen it in my Access 2003
apps as well. After I pressed F9 it enters the break mode. But once I
clear the break point in my Access app, I re-ran it and it would still
do the same.

Any idea what it would be?

Thanks so much for sharing your thoughts.

Ben




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
XL2003 VBA: Debuging...can not break or run in break/step mode. Conan Kelly Excel Programming 1 August 23rd 08 11:51 AM
My code enters break mode but there are no breakpoints Mike Excel Programming 1 May 9th 08 03:48 PM
Formulas mysteriously break Maury Markowitz[_2_] Excel Programming 3 March 6th 08 09:45 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


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