LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to test if a cell is empty in a custom function?

Hi,

I'm somewhat new to Excel VBA so pardon me if this question is
simplistic

I am writing a custom function in Excel 07 that performs a calculation
based on 4 input cells in the worksheet and returns one value. I want
this function to return a null value (or a "" vlaue) if one of the
input cells is empty.

Now this would be easy using ISEMPTY using an equation but how do I do
something similar in a VBA custom function? I can't get this to work.

I would think that I have to pass a range to ISEMPTY in a custom
function but don't know how to do that in VBA.

I'm stuck. Can anyone help me here?

Thanks,

BB
 
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
IF function to test whether the cell value is equal to empty nest terb Excel Worksheet Functions 1 April 30th 08 06:05 AM
How can I test if a cell is empty? Victor Delta Excel Discussion (Misc queries) 10 August 8th 07 11:22 PM
test expression for empty cell in =SUMIF() fgrose Excel Worksheet Functions 12 July 16th 07 04:52 PM
Test for empty cell Sonnich Excel Programming 2 May 29th 06 03:20 PM
Test if Cell is Empty or Doesn't Exist scott Excel Programming 2 February 7th 05 10:49 PM


All times are GMT +1. The time now is 11:30 AM.

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

About Us

"It's about Microsoft Excel"