M
muyBN
(My first post may not have gone through according a web page error message I
received so I'm writing this again just in case. If two show up, please
answer the other one, not this.)
I know that functions are generally made to return one value but I know that
there are also ways to return multiple values with arrays or objects and dot
notation. However, from the few examples I've seen on the Web I haven't
understood completely how to accomplish it. I'm hoping that someone can help
me if I write what I'm trying to accomplish using snippets of my code.
Sub umSaveDocName(strGradingDoc as String, strNewFile As String)
'need more details here; this is a guess
strGradingDoc = umGetTargetFileInfo.File1Info
strNewFile = umGetTargetFileInfo.File2Info
End Sub
Function umGetTargetFileInfo(File1Info as String, File2Info as String) as
Variant
'need more details here; this is a guess
umGetTargetFileInfo(File1Info, File2Info)
End Function
received so I'm writing this again just in case. If two show up, please
answer the other one, not this.)
I know that functions are generally made to return one value but I know that
there are also ways to return multiple values with arrays or objects and dot
notation. However, from the few examples I've seen on the Web I haven't
understood completely how to accomplish it. I'm hoping that someone can help
me if I write what I'm trying to accomplish using snippets of my code.
Sub umSaveDocName(strGradingDoc as String, strNewFile As String)
'need more details here; this is a guess
strGradingDoc = umGetTargetFileInfo.File1Info
strNewFile = umGetTargetFileInfo.File2Info
End Sub
Function umGetTargetFileInfo(File1Info as String, File2Info as String) as
Variant
'need more details here; this is a guess
umGetTargetFileInfo(File1Info, File2Info)
End Function