Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA function returning the value EMPTY

Is it possible to make a userdefined worksheet function return the value
Empty ?

What I need is a VBA function like :

Function Func_Empty(ByVal X As Variant) As Variant
If IsError(X) Then
Func_Empty = SomeThing
Else
Func_Empty = X
EndIf
End Function

SomeThing should not be 0 (zero), "" (empty string), or #N/A. I should
function as if I had manually deleted the value in the cell in question.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default VBA function returning the value EMPTY

Hi Helge,

Is it possible to make a userdefined worksheet function return the value
Empty ?


No. A used defined function allways returns something.

You could set the result to an empty string:

Func_Empty=""

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

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
How to stop index match returning data where lookup cell empty Diddy Excel Worksheet Functions 4 January 18th 09 11:09 PM
Returning Data to an empty Cell Newfie809 Excel Worksheet Functions 1 August 22nd 08 09:19 PM
Function argument not returning a value Linda Excel Worksheet Functions 11 December 28th 07 11:38 PM
Returning an empty cell when no data present Bryan Excel Discussion (Misc queries) 4 November 27th 06 10:51 PM
Returning value from function Sally[_3_] Excel Programming 3 September 25th 03 08:20 PM


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