Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks very much, a very simple solution!
A further question arising from this: is there any other place to store UDFs so that I can use them without a worksheet qualifier, i.e just like Excel worksheet functions? "Gord Dibben" wrote: =Personal.xls!isdate(B17) Gord Dibben MS Excel MVP On Wed, 7 Oct 2009 16:56:01 -0700, Hershmab wrote: "Tom Ogilvy" wrote: Use the Vartype function from VBA See Excel VBA help for details. -- Regards, Tom Ogilvy I want to use this idea to create a UDF function "isdate", but my VBA knowledge does not seem up to it: I created the following code in a new module in my Personal.xls: Public Function isdate(xCell As Range) If VarType(xCell) = vbDate Then isdate = True Else isdate = False End If End Function I entered the formula "=isdate(B17)" in a cell, but it only returned "#NAME?", and I did not know how to debug it. What am I doing wrong? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Format Problem - Date Overrides Format | Excel Discussion (Misc queries) | |||
Excel 2000 date format cannot be set to Australian date format | Excel Discussion (Misc queries) | |||
Macro Date Testing | Excel Programming | |||
Testing Time /Date stamps of Files | Excel Programming | |||
Testing Time /Date stamps of Files | Excel Programming |