hi guys.
I know this is probably super-basic, but could i get some help with this syntax?
Sub opentxt()
Dim filepath As String
filepath = "C:\Users\admin\Desktop"
workbooks.opentext (Sample,filepath, , xldelimited, ,,,,,true)
End Sub
I'm just trying to open a text file. Fields are separated by spaces.
I'm getting "compile error, expected ="
Cheers,
-dk
Bookmarks