Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get file chosen 1

Status
Not open for further replies.

Johnny42

Technical User
Jul 13, 2004
127
CA
how could I call this sub (faq707-4114)and get the chosen file to be returned to the sub that call it ?
 
Easy way is to change the Sub to a Function, and set it's return value to the result you want
Code:
Function OpenSingleFile() As String
' as existing down to last line
OpenSingleFile = Filename
End Function
...You may need to edit out the Workbooks.Open etc

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top