Selecting a Single Cell Using VBARange(“A1”) tells VBA the address of the cell that we want to refer to. Select is a method of the Range object and selects the cells/range specified in the Range object. The cell references need to be enclosed in double quotes.
Is there a way to catch a click on a cell in VBA with Excel? I am not referring to the Worksheet_SelectionChange
event, as that will not trigger multiple times if the cell is clicked multiple times. BeforeDoubleClick
does not solve my problem either, as I do not want to require the user to double click that frequently.
My current solution does work with the SelectionChange
event, but it appears to require the use of global variables and other suboptimal coding practices. It also seems prone to error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With