Hi there
I am looking to set up a simple piece of code which executes if a certain cell on a worksheet is clicked but I cannot find the equivalent of the click event in Access for an Excel cell. I have seen references to the Worksheet_SelectionChange event and Intersect but being fairly new to VBA code am unsure how to use these to achieve the following:
If cell A3 is selected but either cell A1 or Cell A2 is empty then a message box should appear asking user to enter their own value in cell A3. However if cell A1 and Cell A2 both contain values then cell A3 should calculate the total of cell A1 and cell A2.
Any help would be very much appreciated
Thanks Sandra
I am looking to set up a simple piece of code which executes if a certain cell on a worksheet is clicked but I cannot find the equivalent of the click event in Access for an Excel cell. I have seen references to the Worksheet_SelectionChange event and Intersect but being fairly new to VBA code am unsure how to use these to achieve the following:
If cell A3 is selected but either cell A1 or Cell A2 is empty then a message box should appear asking user to enter their own value in cell A3. However if cell A1 and Cell A2 both contain values then cell A3 should calculate the total of cell A1 and cell A2.
Any help would be very much appreciated
Thanks Sandra