#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code Jumps


I have a wb with many UDFs and sheets, modules, forms etc.
When I use the step by step debug (F8 key), sometimes the step don't
jumps to the following statement of the routine but to some statement of
a UDF. I'ld like to know if this is a correct behaviour or it's a sign
of some defects hidden in the procedure.

Apart these jumps that I see only debugging, apparently the procedure
performs correctly. I'ld like, however, to know if these jumps must (or
can) be avoided. I thought, for example, to place a pair of
Application.EnableEvents (False/True) at the beginning and at the end of
every routine/function, but I am not sure.

Thanks,
Emiliano


--
eggpap

Excel 2003 on Vista HP System - can use VBA
------------------------------------------------------------------------
eggpap's Profile: http://www.thecodecage.com/forumz/member.php?userid=90
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=50276

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 515
Default Code Jumps

Not knowing your code makes it impossible to answer! It might just be that
your code actually calls the UDF?
--
Hth

Kassie Kasselman
Change xxx to hotmail


"eggpap" wrote:


I have a wb with many UDFs and sheets, modules, forms etc.
When I use the step by step debug (F8 key), sometimes the step don't
jumps to the following statement of the routine but to some statement of
a UDF. I'ld like to know if this is a correct behaviour or it's a sign
of some defects hidden in the procedure.

Apart these jumps that I see only debugging, apparently the procedure
performs correctly. I'ld like, however, to know if these jumps must (or
can) be avoided. I thought, for example, to place a pair of
Application.EnableEvents (False/True) at the beginning and at the end of
every routine/function, but I am not sure.

Thanks,
Emiliano


--
eggpap

Excel 2003 on Vista HP System - can use VBA
------------------------------------------------------------------------
eggpap's Profile: http://www.thecodecage.com/forumz/member.php?userid=90
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=50276


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code Jumps


Thanks for your reply,

Kassie;181879 Wrote:
Not knowing your code makes it impossible to answer! It might just be
that
your code actually calls the UDF?


No, the UDFs are called by Excel itself not by code.
I think you can reply without seeing the code, that is very big. I ask
only if you, thanks to the experience I don't have, have ever seen a
similar behaviour.

Emiliano


--
eggpap

Excel 2003 on Vista HP System - can use VBA
------------------------------------------------------------------------
eggpap's Profile: http://www.thecodecage.com/forumz/member.php?userid=90
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=50276

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
Tab Jumps 13 Cells when hit rcamron Excel Discussion (Misc queries) 4 December 12th 09 05:22 PM
On save excel jumps to another worksheet. How to fix VBA code? BillJenk Excel Programming 2 October 9th 08 10:13 PM
Scoll bar jumps to top lyk Excel Discussion (Misc queries) 0 October 5th 07 08:48 PM
Autofilter jumps to end of row, why? Pierre Excel Discussion (Misc queries) 0 February 7th 07 03:35 PM
Sub unexpectedly jumps to another sub Jeff Wright[_2_] Excel Programming 3 August 26th 06 01:48 PM


All times are GMT +1. The time now is 01:17 PM.

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

About Us

"It's about Microsoft Excel"