function for looking up text
Works fine here. I presume you are using it in a worksheet? What do you get?
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Kathl" wrote in message
...
hi, don't know what's wrong with this function. it shall take the value of
a
cell and via select case look, whats in it and write into the active cell
a
certain text.
Function PreTimeSlotsConv18(PreSlot18)
Select Case PreSlot18
Case "Slot 1"
PreTimeSlotsConv18 = "17:35"
Case "Slot 2"
PreTimeSlotsConv18 = "17:20"
Case "Slot3"
PreTimeSlotsConv18 = "17:05"
End Select
End Function
cheers
|