Thread: Find in UDF VBA
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz[_2_] JLGWhiz[_2_] is offline
external usenet poster
 
Posts: 1,565
Default Find in UDF VBA

A UDF must return a single value, otherwise it becomes a procedure and needs
the Sub keywork vs the Function keyword in the title line.


"caveman.savant" wrote in message
...
I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
"SHORT", "SHT" is in the cell in column G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1