Click to See Complete Forum and Search --> : Resolved[Open file]
Fonty
Jun 12th, 2006, 10:17 AM
Given the path and name of some file, how can I open it from a user form?
DanInManchester
Jun 12th, 2006, 10:48 AM
It depends what you mean by open it.
If you want to open it in an exteral program e.g. word or excel then use the shell command.
Shell("c:\somefile.xls")
if you want to open it and process it within your application then it really depends on what the file is.
Fonty
Jun 12th, 2006, 11:15 AM
I can't find out why it keeps showing with Shell run time error 5, saying "Invalid procedure call or argument"...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.