nest macro in a formula

  • Thread starter Thread starter BBoyd
  • Start date Start date
B

BBoyd

i am comparing pairs of cells in a column of data using an if statement. if
the statement is false i would like to add a row between them. i have
created a macro that just adds a row but i dont know how to nest it in an if
statement nor do i know exactly how to make sure that excel knows that i want
to add the new row above. i have tried to copy and past in vb but i am very
new to this and hope someone can help. using excel 2003
 
You can't call/run a macro from a worksheet formula. What you will
need to do is have another macro which contains your IF THEN ELSE
ENDIF statement and for this to call your first macro to insert the
row.

Hope this helps.

Pete
 
not exactly sure what yoy mean. i will try to attach an example soon.
thank you for your time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Nest vs Hive? 10
Formula nesting with IF statements 2
Nest Guard has hidden microphone 2
Nested "If Statement" 4
Nested IF Help 3
NESTED OR FORMULAS 5
Nested If 3
Nesting Formula 4

Back
Top