gstylianou
Registered User.
- Local time
- Today, 14:21
- Joined
- Dec 16, 2013
- Messages
- 359
Hi, how can i get the value from another public function in the following example?
Public Function GetValuesFromForm() As Boolean
Dim X As String
Dim y As String
If 100+10=110 then
x=True
Else
x=False
End if
GetValuesFromForm=X
y=GetValuesFromForm()
End Function
I tried into another Public Function to get the result of the x like the following example and i'm getting the following error
If GetValuesFromForm = True Then
MsgBox "1"
End If
Sorry about my basic knowledge of vba..
Public Function GetValuesFromForm() As Boolean
Dim X As String
Dim y As String
If 100+10=110 then
x=True
Else
x=False
End if
GetValuesFromForm=X
y=GetValuesFromForm()
End Function
I tried into another Public Function to get the result of the x like the following example and i'm getting the following error
If GetValuesFromForm = True Then
MsgBox "1"
End If
Sorry about my basic knowledge of vba..