Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default How to? UDF returning nothing

Greetings!

Have a function doing a conversion on a target cell. If the target cell is
empty (literally: IsEmpty), then I'd like for the function to return
nothing, such that the destination cell value is also empty (not a blank or
empty string, which is something).

No return (not setting a function value), and a return of Null, both result
in the number 0.

Ideas?

Thanks,
George


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How to? UDF returning nothing

Functions, whether built-in or UDFs, return values to cells.

Additionally, if there's a formula in the cell, it's not empty, and
won't be evaluated as empty by IsEmpty(), regardless of what it returns.

If you truly want the cell to be empty, you'll have to replace the
function with an event macro.

In article ,
"G Lykos" wrote:

Have a function doing a conversion on a target cell. If the target cell is
empty (literally: IsEmpty), then I'd like for the function to return
nothing, such that the destination cell value is also empty (not a blank or
empty string, which is something).

No return (not setting a function value), and a return of Null, both result
in the number 0.

Ideas?

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
Returning the value Returning the value Excel Discussion (Misc queries) 2 June 13th 09 07:59 AM
Returning a zero Dena Excel Discussion (Misc queries) 4 February 10th 09 05:04 PM
UDF not returning anything ashish128 Excel Discussion (Misc queries) 2 November 6th 07 10:28 AM
Sum returning 0 JR Excel Worksheet Functions 4 February 24th 06 01:41 PM
UDF Returning #N/A KAHAUS Excel Programming 3 October 22nd 05 03:18 AM


All times are GMT +1. The time now is 12:26 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"