Hi all,
I have textbox1 and commandbutton3 in userform.
Commandbutton3 has the below code:
I have textbox1 and commandbutton3 in userform.
Commandbutton3 has the below code:
Code:
Private Sub CommandButton3_Click()
x = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Choose File", MultiSelect:=False)
MsgBox "You selected " & x
End Sub
[code]
1. I would like that commandbutton3 to be only visible if the user selects textbox1
2. When user clicks on commandbutton3 and selects the file, I would like x to populate textbox1.
Is that possible?
Thanks