LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reliability of macro results


Hi, Nigel:


The "super-macro" is quite a lengthy chunk of program, so tracing thru
it is going to be bit of a task.

IAC, I think this will initially be a needle-in-a-haystack troubleshoot
.... at least until I have run the macro a few dozen more times to build
up enough empirical evidence to speculate on a culprit. Since the macro
can take up to an hour to complete -- per worksheet -- this may take a
while.

Thx for your reply!


Nigel Wrote:
Check you data, then check it again, inevitably in these situations the
code
you thought acted on data correctly comes across a piece of corrupt or
unexpected piece of data that causes your code to fail. Even a space
in the
wrong place (difficult to see if they appear at the end of a string!)
can
cause problems.

It is unlikely to be 'random' , although it may appear to be! - try
setting
up the same start conditions and run the code again, put a conditional
watch
in to check for value changes that are invalid, and also use breaks to
halt
code execution at the appropriate place.

Chunk up you code into more manageable blocks - maybe it is the same
sub-routine causing the problem - check each using the above approach.

Hope the above helps. Good luck.
--
Cheers
Nigel



"KHashmi316"
wrote
in message
...

I'm having some reliability issues with a "super-macro" I'm

currently
using. This macro -- which calls on several sub-macros -- is quite
process-heavy and operates on worksheets that often have thousands

of
rows. Much of the "processing" involves search and replace or search
and delete. E.g., replace "&" with "and".

Unfortunately, the "super-macro" will randomly miss a replace or
delete. The problem does not crop up frequently, but the results do
cause problems with programs this worksheet ultimately interfaces
with.

I have removed speed-optimizing code which I thought may be a

culprit.
I.e.:

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
[ your code ]

Application.ScreenUpdating = True
Application.Calculation=xlCalculationAutomatic

But the reliability remains unchanged.

Any info on how I can improve reliability is appreciated!


--
KHashmi316



------------------------------------------------------------------------
KHashmi316's Profile:

http://www.excelforum.com/member.php...o&userid=10439
View this thread:

http://www.excelforum.com/showthread...hreadid=380775



--
KHashmi316


------------------------------------------------------------------------
KHashmi316's Profile: http://www.excelforum.com/member.php...o&userid=10439
View this thread: http://www.excelforum.com/showthread...hreadid=380775

 
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
Kuder-Richardson #21 Formula for estimate test reliability [email protected] Excel Discussion (Misc queries) 5 April 3rd 23 06:52 PM
can excel calculate inter rater reliability? Brian Boru Excel Discussion (Misc queries) 1 March 9th 10 01:05 PM
Inter-rater reliability question inter-rater Excel Worksheet Functions 1 September 28th 08 12:23 PM
Reliability and Confidence and Excel Gerigto Excel Discussion (Misc queries) 5 September 5th 07 03:04 AM
How can I list the results of my macro without overwritng previous results? mattip Excel Programming 3 November 28th 03 03:45 AM


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