LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Advice on correctness of using subs

Dear all

I am building a data checking tool using macros. We have one we
currently use that I built directly in Excel using lookups, If
statements etc, but the data range is so large and it is at the extent
of complexity taking many minutes to recalc.

So I have turned to trying to achieve the same task using macros
instead.. Basically the way the macro works is to look up a code,
using offsets it compares the value with some pre-determined values.
If it finds an error it then lists the error onto another sheet and
the user makes the correction in a third party system, reloads the
data and rechecks.

So far all seems OK....

My question is as follows:-

Do I create lots of mini subs for each group of data tests I want to
do and then call each of them from a primary sub or do I consecutively
list each data test in fewer subs.
Is there a performance impact.

I think for ease of maintaining the code and future debugging etc it
is better to break the subs into smaller sections but I bow to the
knowlegable ones.

Thanks in advance

John
 
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
working out % of correctness gives #DIV/0! Carrach Excel Discussion (Misc queries) 2 April 27th 10 01:41 PM
Subs Donna C Excel Programming 3 December 31st 06 02:20 AM
Sort subs Gary''s Student Excel Programming 3 October 23rd 05 09:35 PM
calling subs Mike Excel Programming 4 April 8th 04 08:22 PM
Recursive Subs? ExcelMonkey[_74_] Excel Programming 5 February 5th 04 02:54 AM


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