Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Isblank function not working in VBA

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("Profi leFirstCell").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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Isblank function not working in VBA

Try looking up the help for IsEmpty instead.

--
Anything is possible if you don''t know what you''re talking about.


"ExcelMonkey" wrote:

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("Profi leFirstCell").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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Isblank function not working in VBA

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

"Wood Grafing" wrote:

Try looking up the help for IsEmpty instead.

--
Anything is possible if you don''t know what you''re talking about.


"ExcelMonkey" wrote:

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("Profi leFirstCell").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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Isblank function not working in VBA

In article ,
ExcelMonkey wrote:

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.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Isblank function not working in VBA

What are you trying to do with this?

"ExcelMonkey" wrote:

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("Profi leFirstCell").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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Isblank function not working in VBA

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
....



ExcelMonkey wrote:

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

"Wood Grafing" wrote:

Try looking up the help for IsEmpty instead.

--
Anything is possible if you don''t know what you''re talking about.


"ExcelMonkey" wrote:

Why does this not work:

Application.WorksheetFunction.ISBLANK(Range("Profi leFirstCell").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


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISBLANK function not working when cell is blank dut to function re mcmilja Excel Discussion (Misc queries) 9 May 7th 23 03:43 AM
IF ISBLANK Function TDMP Excel Worksheet Functions 5 October 21st 09 08:24 PM
ISBLANK and OR Function Jacob Skaria Excel Discussion (Misc queries) 0 June 17th 09 04:18 AM
IF Function with ISBLANK Steve M[_3_] Excel Worksheet Functions 10 May 7th 08 10:21 PM
Isblank Function not working in VBA ExcelMonkey[_190_] Excel Programming 8 March 16th 05 11:26 AM


All times are GMT +1. The time now is 08:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"