Link to home
Start Free TrialLog in
Avatar of ProperRespect
ProperRespect

asked on

How to use the CommonDialog to Navigate Open Filename from Excel97

I've recently switched to Office 97 and Windows NT 4 workstation and now can't seem to get the Common Dialog to bring up the OPEN FILES dialog to point and click filenames for VBA.  Even when I try it from a VB Form by adding it to the controls and then when I try to drop it I get an error?  Any ideas?
Avatar of bin_huwairib
bin_huwairib

What kind of error?
ASKER CERTIFIED SOLUTION
Avatar of LMSuporte
LMSuporte

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Private Sub CommandButton1_Click()
'OPENS THE FILE DAILOG BOX AND GETS THE FILE NAME DISPLAYS IN THE TEXT BOX

CommonDialog1.ShowOpen
TEXT1.Text = CommonDialog1.FileName
End Sub