Isblank function not working in VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("ProfileFirstCell").Offset(x -
1, 5))

I am getting an error message saying:
Run time error 438, Object does not support this property or method.

Thanks

EM
 
I think Isempty is for whether or not the variable was initialized. Not sure
if that is the issue here as I am not Setting a variable equal to a range. I
am applying an excel spreadsheet function to an excel range via VBA.

Thanks

EM
 
ExcelMonkey said:
I think Isempty is for whether or not the variable was initialized.
Not sure if that is the issue here as I am not Setting a variable
equal to a range. I am applying an excel spreadsheet function to an
excel range via VBA.

Try it.

If the cell contains no value or formula, the temporary variable that
implements the value property is uninitialized.
 
Is "ProfileFirstCell" a single cell range?

If yes, then try:

if isempty(range("ProfileFirstCell").value) then
....

If it's multiple cells

if application.counta(range("ProfileFirstCell")) = 0 then
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top