Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a Macro

Status
Not open for further replies.

nornrich

Mechanical
Jun 12, 2002
194
All,

Is there a way to execute a macro based on an "if" statement within an Excel Spreadsheet?

Regards,

Rich......[viking2]

Richard Nornhold, PE
 
Replies continue below

Recommended for you

Probably.

Assuming that your "macro" is a User Defined Function named MyFunction:

=IF(Logical Test, MyFunction())

 
Sure, you just put in the macro name. You do need to define it as a function, and not a sub

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor