Retrieving filename

  • Thread starter Thread starter Richard Wright
  • Start date Start date
R

Richard Wright

Hi Everyone - I need some more help. I'm trying to prompt my user for a
filename that I will store in a field. I'm using the following code:
|
| Dim stDocName, stMessage, stTitle
| stMessage = "Enter filename: "
| stTitle = "Get Photo"
| stDocName = InputBox(stMessage, stTitle, Default)
| Photo = stDocName
|

which works, but has one, if not more, major drawback the user must know the
filename. Is there a way in vba to have the file dialog box open so the
user can browse for the file? Any help is greatly appreciated. - Rick
 
Back
Top