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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: If sheet1 cell A1 = "1" then Application.Run "MyMacro&quot

Status
Not open for further replies.

coolcarls

Technical User
Jan 19, 2002
182
US
Can I run a macro when a cells value meets a certain criteria?
Thanks again to all
 
Yes,...put your code in a function instead of a sub

the following runs a function called run_me that has a msgbox("msg here")if a1 >10

=IF(A1>10,run_me(),"")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top