My spreadsheet has some empty cells in it.
I have tried using the code
but this doesn't work, as it just goes straight into the Else section.
How can I cater for empty cells?
I have tried using the code
Code:
If IsNull(ActiveCell.Value) Then
my_variable = 0
Else: my_variable = ActiveCell.Value
End If
but this doesn't work, as it just goes straight into the Else section.
How can I cater for empty cells?