VBA Help

Discussion in 'Software' started by IdahoGeek, Nov 8, 2004.

  1. IdahoGeek

    IdahoGeek Private E-2

    Re: FAQ: Which Language Is The Best To Learn.

    Hello Folks I need some VBA Help.
    If this is not the correct forum let me know and I'll scoot.
    I'm attempting to write a function using If..Then..ElseIf statements.
    Not all my code works. Can somebody tell me what I'm missing. Here is the code.
    Public Function asaFullName(strFirst As String, strSpouse As String, _
    strLast As String) As String

    Dim strTempName As String

    If (strSpouse) = "A" Then
    strTempName = (strFirst & " " & strLast)

    ElseIf (strSpouse) = "B" Then
    strTempName = (strFirst & " " & "and" & " " & strSpouse & " " & strLast)

    asaFullName = strTempName
    End If
    End Function

    Thanks in Advance.
     
  2. NeoNemesis

    NeoNemesis Moutharrhea

    Re: FAQ: Which Language Is The Best To Learn.

    No, you should make your own thread so that people can help you there. And it will get more attention. This is just a place for people to figure out which language is best. THe programming forum in general is a place where this should be posted.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds