How are ya amroo (that's Aussie for Bonjour :o)
This code will use the standard Open dialog box and pass it to the String Variable "MyTextFile". The message box is just to show you the result. I would avoid having the user type a file and path as they WILL mistype it!
Sub TryThis()
Dim MyTextFile as String
MyTextFile = Application.GetOpenFilename
MsgBox MyTextFile
End Sub
See ya!
Dave
OzGrid Business Applications
Bonjour to Dave
I put your code in a new macro and make it run, but
I can't get the data of my file text on the spreadsheet.
What's going wrong.
A+ (as see or read you later)
Amroo
Bonjour,
I wrote a code for import a file.text to a spreadsheet after feeling a inputbox with the flie'spath and put it in a macro; it runs very well.
So I put it on the forum if it's need by someone.
Amroo
Bonjour,
I wrote a code for import a file.text to a spreadsheet after feeling a inputbox with the flie'spath and put it in a macro; it runs very well.
So I put it on the forum if it's need by someone.
Amroo