Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following function: Function volume(height As Byte, width As Byte, Optional length As Single) If IsMissing(length) Then volume = height * width Else volume = height * width * length End If End Function If I type in a number which is greater than 1 in the width argument, I get the #value error. I'm not sure why because I set width as byte. Is there something wrong with my code that I can't see? This is a sample that I'm playing with but it's driving me crazy. Any help will be greatly appreciated. Thanks in advance. Herman |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
strange error | Excel Discussion (Misc queries) | |||
Strange error with basic divide function | Excel Worksheet Functions | |||
Strange error | Setting up and Configuration of Excel | |||
Very strange error | Excel Discussion (Misc queries) | |||
Strange error | Excel Programming |