Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Jun 12, 2002
Messages
194
Location
US
All,

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

Regards,

Rich......[viking2]

Richard Nornhold, PE
 
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

Back
Top