This is the code within one of my subs in VBA. But I get the 'ByRef Argument Type Mismatch' Error. Matchup_record is a separate function which has been tested using strings inputted with apostrophes.
Dim homeTeam, awayTeam as String
homeTeam = Application.InputBox(prompt:="Who is the home team?", Title:="Home Team", Type:=2)
awayTeam = Application.InputBox(prompt:="Who is the away team?", Title:="Second Team", Type:=2)
matchup_record homeTeam, awayTeam