Hey everyone...In EXCEL, how would I write code for a specific cel? Say if someone clicked on cel A:1, I want to have a msgbox appear....Or if a value in a cel was wrong, a msgbox appear for that as well....
If there is a formula in a cell, then either use Worksheet_Calculate event or, as Skip suggested, Worksheet_Change event, but test cells with input values.
For simple input testing there is no need to use vba. 'Data>Data validation' tool is usually sufficient and impressive with input and error messages set (but it does not prevent from pasting data).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.