"Jason Charalambides" <EMAIL REMOVED> wrote
> This may sound very basic. I have built a very long procedure with way too
> many Ifs etc. I wonder if it is possible to transfer at least some of the
> contents to modules so in case an if condition is satisfied the procedure to
> be followed will be in a module. As an example, let me say that I have an
> If condition stating:
>
> If Hypo_length>35 Then
> Do a bunch of stuff
> End if
>
> Can I have all that "bunch of stuff" in a module that I name "Module9"?
Yes, but that would be overkill. That If/Then code is in a procedure, either
a Sub, Function, or an event. To break it up simply add a new procedure
(Sub or Function) in the same module you are currently using. That way you
keep all the code that works together, in the same module.
LFS
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----