I have a variable which contains a range value which is selected by the user.
How can I check if it have a value or not?
I’ve tried these:
If variable_name.Value = Empty then ....
If variable_name.Value = " " then ...
But these are only good when the variable contains data like text or numbers or whitespace.
Any idea?
Depends what you are testing.
A range object or a cell value?