Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
UDF behaving oddly
The following UDF generates VALUE! errors intermittently and I can't figure
out why. The range argument references another (shared) workbook. It seems that when this shared workbook is open the function works, when it is not open, the error is generated. Can this be corrected? Thanks Public Function DTD(TIME As Range, CONVTYPE As Integer) Select Case CONVTYPE Case Is = 1 minutes = Int(TIME) seconds = Round((TIME - minutes) * 60, 0) DTD = TimeSerial(0, minutes, seconds) Case Is = 2 minutes = Int(TIME) seconds = (TIME - minutes) / 0.6 DTD = minutes + seconds End Select End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
find works very oddly | Excel Programming | |||
Select Case Behaving Oddly | Excel Programming | |||
OFFSET behaving oddly | Excel Worksheet Functions | |||
=ISODD Behaving Oddly | Excel Programming |