Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://stackoverflow.com/questions/55585923/set-vba-variable-to-result-from-function-which-is-string

Public Sub MainSubTest()
   returnstr  = foo("bar")
   MsgBox returnstr
End Sub

Public Function Test(ByRef var As String) As String
   Test = "foo" & var
End Function
  • No labels