Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to check that the macros we have applied in excel sheets is working properly????
Posted
Updated 17-Mar-11 1:29am
v2
Comments
Tarun.K.S 17-Mar-11 7:15am    
By executing them.

Tarun.K.S.s' answer may sound flippant, but it is in fact the only way to tell.
With any form of software - and macros are a form of software - the only way to tell if it is working "correctly" (i.e. doing exactly what you intended it to do, rather than what you told it to do) is to run it and see.


" actualy its not giving any error while running......... I just wanted to test that how it works"


What kind of answer do you want? "Run the macro and make sure that cell E162 on the "Invoices" sheet contains 179.66?"

How do you expect us to answer that? We don't know what your macros do, so how could we possibly tell you how to test if they work properly? A lack of detected errors does not mean a macro works. Only you can design a test for them: we don't even know what kind of data they are manipulating!

(And that is not a hint: "post your macros" - I don't want them!)
 
Share this answer
 
v2
Comments
Member 7673456 18-Mar-11 0:39am    
???????????????? .......... actualy its not giving any error while running......... I just wanted to test that how it works????/
OriginalGriff 18-Mar-11 4:34am    
Answer updated
Espen Harlinn 18-Mar-11 6:48am    
You either had a good laugh on this one, or practiced some woo-doo to bring boils and ulcers :)
Maciej Los 1-Dec-14 1:54am    
Some people say: the answer is always as good as the question. This answer is excellent, Paul!
Cheers,
Maciej
Hi ,

Adding a watch or Block of code to debug can get u intended output .
Debug also and hover on each line to know the execution value to see .

Do Reply !!!!!
Thanks
 
Share this answer
 
Comments
OriginalGriff 1-Dec-14 5:26am    
Reason for my vote of one: There is no point in digging up three-year-old questions and adding a generic and frankly not particularly helpful answer to it.
This isn't about debugging, it's about the stage before that: finding out if there are any bugs in the first place.

This kind of behaviour looks like a rep points hunt: which is a form of abuse and can result in your account here being closed. By all means answer questions, but the answers must be relevant, and they just be "I want points, and I don't care how" type answers. OK?
RavR11 12-Dec-14 5:46am    
Have Good Walk !!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900