View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
japorms japorms is offline
external usenet poster
 
Posts: 1
Default Ned Help W/ Custom Function


Hi Guys,

Im trying to make a custom function but I seem to unable to make the
correct declaration
I have the code below but its not displaying the data that I want

The result should be Lynn Haven for C410 data and ABU for G538. but it
only display 0.

Function Company2(ByRef Company As Integer)
If Company = "C410" Then
Company = "Lynn Haven"
ElseIf Company = "G538" Then
Company = "ABU"
End If
End Function

Can someone help me this?

Thanks!


--
japorms
------------------------------------------------------------------------
japorms's Profile: http://www.excelforum.com/member.php...fo&userid=6544
View this thread: http://www.excelforum.com/showthread...hreadid=571545