N
news.sintef.no
I want to write a simple macro that allows the user to select a filename
(i.e. FileNameSelected.txt) before the following OpenText macro command is
executed. How do I "transfer" the user selected filename into this macro
command?
Workbooks.OpenText Filename:= "c:\data\FileNameSelected.txt", Origin
:=xlMSDOS, StartRow:=1,
DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(9, 1),
......), TrailingMinusNumbers:=True
Thanks for any suggestions.
Frank Krogh
(i.e. FileNameSelected.txt) before the following OpenText macro command is
executed. How do I "transfer" the user selected filename into this macro
command?
Workbooks.OpenText Filename:= "c:\data\FileNameSelected.txt", Origin
:=xlMSDOS, StartRow:=1,
DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(9, 1),
......), TrailingMinusNumbers:=True
Thanks for any suggestions.
Frank Krogh