Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default calling subs

Hi all,

I just finished some new code in a program that calls a
sub. When I ran the modified code, the program just skips
over the call command. Any reason why this would happen?
If there are any errors in the sub, shouldn’t it come up
as an error instead of avoiding the sub completely?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default calling subs

Show us what you have to give us a chance.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

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

I just finished some new code in a program that calls a
sub. When I ran the modified code, the program just skips
over the call command. Any reason why this would happen?
If there are any errors in the sub, shouldn’t it come up
as an error instead of avoiding the sub completely?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default calling subs

Hi
as always: post the relevant code :-)

--
Regards
Frank Kabel
Frankfurt, Germany


Mike wrote:
Hi all,

I just finished some new code in a program that calls a
sub. When I ran the modified code, the program just skips
over the call command. Any reason why this would happen?
If there are any errors in the sub, shouldn’t it come up
as an error instead of avoiding the sub completely?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling subs

Do this: Set a breakpoint on the line preceding the calling of th
subroutine. Run the code and when it reaches the breakpoint it wil
stop and show you the highlighted line with the breakpoint. Press “F8
to step through the code one line at a time. This will show yo
exactly what is happening as the program runs, whether the subroutin
is actually being skipped or if there is a bug in the sub itself tha
causes it to look as though it is skipped. Beyond that we must have
look at the code to tell you more. - Piku

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default calling subs

I would show the code but it’s long and messy. I already
did the break point and "f8" thing and it literally steps
over the call. I set the break point one step in front of
the call command then I hit f8. The call is highlight
then I hit f8 again and the next line after the call is
highlight. Maybe I will strip out all the code in the
call sub then put a msgbox("") command to see if it will
ever go to that sub.





-----Original Message-----
Do this: Set a breakpoint on the line preceding the

calling of the
subroutine. Run the code and when it reaches the

breakpoint it will
stop and show you the highlighted line with the

breakpoint. Press "F8"
to step through the code one line at a time. This will

show you
exactly what is happening as the program runs, whether

the subroutine
is actually being skipped or if there is a bug in the sub

itself that
causes it to look as though it is skipped. Beyond that

we must have a
look at the code to tell you more. - Pikus


---
Message posted from http://www.ExcelForum.com/

.



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
Combining two Subs Petitboeuf Excel Discussion (Misc queries) 6 April 27th 06 03:42 PM
Sort subs. by amount Martin ©¿©¬ @REMOVETHIS.plus.com Excel Discussion (Misc queries) 4 March 8th 06 05:01 PM
calling subs, Doesn't seem to run fisrt time? CAA[_21_] Excel Programming 2 April 1st 04 08:23 PM
Recursive Subs? ExcelMonkey[_74_] Excel Programming 5 February 5th 04 02:54 AM
calling private subs dunlklee Excel Programming 1 December 16th 03 08:40 AM


All times are GMT +1. The time now is 12:04 AM.

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"