Found a solution from the comments I got.
Sub TestIsEmpty()
If WorksheetFunction.CountA(Range("A38:P38")) = 0 Then
MsgBox "Empty"
Else
MsgBox "Not Empty"
End If
End Sub
More Related Contents:
- Is the . in .Range necessary when defined by .Cells?
- Convert an entire range to uppercase without looping through all the cells
- How to copy only values in excel vba from a range?
- Copy a selected range to another worksheet
- VBA Dialog box to select range in different workbook
- VBA: Modify chart data range
- 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
- Copy from one workbook and paste into another
- How to copy Outlook mail message into excel using VBA or Macros
- For Loop not fully cycling in excel VBA [duplicate]
- Unique Random Numbers using VBA
- Populate unique values into a VBA array from Excel
- Excel VBA App stops spontaneously with message “Code execution has been halted”
- How to remove all non alphanumeric characters from a string except period and space in excel?
- Closing Excel Application using VBA
- 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
- Checking if a worksheet-based checkbox is checked
- 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
- VBA equivalent to Excel’s mod function
- Pointers needed for speeding up nested loop macro in VBA
- ‘1004’: “The sort reference is not valid.”
- Select entire column in table using Excel VBA
- Create hyperlink to another sheet
- Reducing WithEvent declarations and subs with VBA and ActiveX
- Access files with long paths (over 260)
- How to highlight selected text within excel