How to make a browse button command and loads the path to a textbox ? Please help.
Printable View
How to make a browse button command and loads the path to a textbox ? Please help.
Use Common Dialog control
Private Sub cmdBrowse_Click()
dlg.ShowOpen
txtFile = dlg.FileName
End Sub
Iouri Boutchkine
[email protected]
if u only need to get the directory instead of filename, then try http://vblib.virtualave.net, there is a function called BrowseForFolder in vbGeneralControl class.
HTH