Namely, I called the following snippet in a button handler:
TextBox1.Text = Application.GetOpenFilename("All files (*.*),*.*", _
1, "Open the Raw Data Files", , False)
If TextBox1.Text = "False" Then TextBox1.Text = ""
The error said: “Compiler error: Method or data member not found”
Thanks in advance!
There is no
Application.GetOpenFilenamein Word.You need to use
FileDialoginstead. Here’s a quick example: