You could use IsEmpty()
function like this:
...
Set rRng = Sheet1.Range("A10")
If IsEmpty(rRng.Value) Then ...
you could also use following:
If ActiveCell.Value = vbNullString Then ...
More Related Contents:
- SumIf using Excel VBA
- How can I call a macro which contains a loop but only run one iteration of that loop?
- Test or check if sheet exists
- How can I find last row that contains data in a specific column?
- Copy from one workbook and paste into another
- How to copy Outlook mail message into excel using VBA or Macros
- Open Excel file for reading with VBA without display
- For Loop not fully cycling in excel VBA [duplicate]
- Excel VBA App stops spontaneously with message “Code execution has been halted”
- How to return the number of dimensions of a (Variant) variable passed to it in VBA [duplicate]
- How to remove all non alphanumeric characters from a string except period and space in excel?
- Find last used cell in Excel VBA
- Does Dir() make any guarantee on the order of files returned?
- Call a Sub with a String
- How to clear memory to prevent “out of memory error” in excel vba?
- Assign on-click VBA function to a dynamically created button on Excel Userform
- ShowAllData method of Worksheet class failed
- Faster way to remove ‘extra’ spaces (more than 1) from a large range of cells using VBA for Excel
- Extract Data from Word Document to an Excel SpreadSheet
- Excel macro -Split comma separated entries to new rows [duplicate]
- VBA equivalent to Excel’s mod function
- Get text from clipboard using GetText – avoid error on empty clipboard
- Benchmarking VBA Code
- Display milliseconds in Excel
- VBA editor auto-deletes spaces at the ends of lines
- Select entire column in table using Excel VBA
- Application.Quit command not closing the entire Excel Application
- Reducing WithEvent declarations and subs with VBA and ActiveX
- Trying to open the workbook in separate instance
- Function Overloading and UDF in Excel VBA