S
Sue Mosher [MVP-Outlook]
The easiest method probably is to make MyDateInfo a Function instead of a Sub and return the value:
Sub MainProf()
myDate = MyDateInfo()
End Sub
Function MyDateInfo()
Dim strDateText As String
strDateText = Date
MyDateInfo = strDateText
End Function
Sub MainProf()
myDate = MyDateInfo()
End Sub
Function MyDateInfo()
Dim strDateText As String
strDateText = Date
MyDateInfo = strDateText
End Function