L
LAS
I wanted to add a variation to a function that was in use in a lot of
places, so I thought if I added an Optional parameter, it wouldn't break
existing calls to the function. But if I use txtResult =
fncMinutesFormatted(232323) I get a "type mismatch" error. I have to put
something in the second parameter to avoid it. What am I doing wrong?
Public Function fncMinutesFormatted(ad_minutes As Double, Optional av_days
As Variant) As String
tia
las
places, so I thought if I added an Optional parameter, it wouldn't break
existing calls to the function. But if I use txtResult =
fncMinutesFormatted(232323) I get a "type mismatch" error. I have to put
something in the second parameter to avoid it. What am I doing wrong?
Public Function fncMinutesFormatted(ad_minutes As Double, Optional av_days
As Variant) As String
tia
las