Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default nest macro in a formula

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
--
BBoyd
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default nest macro in a formula

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

On May 21, 5:36*pm, BBoyd wrote:
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
--
BBoyd


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default nest macro in a formula

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

--
BBoyd


"Pete_UK" wrote:

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

On May 21, 5:36 pm, BBoyd wrote:
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
--
BBoyd



Reply
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
how do you nest ROUNDDOWN in an IF formula? numbersguy Excel Worksheet Functions 1 June 14th 06 12:55 AM
Nest a referenced formula in excel [email protected] Excel Worksheet Functions 1 April 13th 06 09:21 PM
how do i nest more than 15 " if " functions in a formula HARSH BAHAL Excel Worksheet Functions 2 May 21st 05 11:42 AM
Why not nest more than 7 functions in Excel formula??? GrandCentral Excel Worksheet Functions 9 March 31st 05 09:30 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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