Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling subs, Doesn't seem to run fisrt time?

I have a userform with quite a few subs, i tend to just call them su
whatever()

When i call subs from other subs things are fine.
Now i've come across soemthing strange, i call a few subs from
text_enter event and one of the subs called from within one of thos
subs doesn't run first time round, but does work!?

I tried integrating the sub within the first sub but again it doesn'
run first time round.

I'm settiing the Tag property of labels depending on their location t
other labels, iv'e been through the code several times and can'
understand why this wouldn't work? although the code does but not th
first time it is called. I've shifted it up the list of called subs a
far as i can but it doesn't help.

Is there a limit to how many subs you can call from an event?
Is there a limit to how many subs from subs you can call?
& is there a better way to call a collection of subs?

Thanks for looking & i hope it hasn't frustrated you as much as it ha
me
CA

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling subs, Doesn't seem to run fisrt time?

Is there a limit to how many subs you can call from an event?
- Not that I know of...

Is there a limit to how many subs from subs you can call?
- See above.

Is there a better way to call a collection of subs?
- Probably, but your way seems fine to me.

First check to be sure that the sub is actually not running buy puttin
something like Msgbox "I'm Running" at the beginning of the code. M
guess is that it is running, but not doing what you want for some othe
reason.

Post back with your findings.



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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling subs, Doesn't seem to run fisrt time?

It does run, i put a msgbox at the end and it runs 2 times, but doesn'
update my tag property.
If i run it one more time by updating a different textbox, with EXACTL
the same call subs sequence it does what it's meant to.

More head scratching is needed, can't suss why it runs twice though? I
has to be something i've done then, i'm glad there seems to be no limi
to calling subs.

Thanks for the help

--
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
Fisrt letter of every word Graham H Excel Worksheet Functions 5 May 27th 08 11:53 AM
Combining two Subs Petitboeuf Excel Discussion (Misc queries) 6 April 27th 06 03:42 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
Passing values between 2 subs ? [email protected] Excel Programming 1 November 21st 03 05:56 PM


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