Code: Select all
Public Sub Example()
Dim Oranges As Long
Dim Apples As Long
Dim Var_Name As String
Apples = 15
Oranges = 27
Var_Name = "Apples"
' I need a code snippet here to return
' 15 or 27 depending on the
' string assigned to Var_Name.
End Sub