Importing into a range from a text file ?
Posted by Mark on March 05, 2001 4:48 AM
I am used to writing in lotus script but need to adapt my worksheet
to suit people with excel. One of the funtions I can't seem to figure out
is how to create a macro that will import all the text from a text file and
place it in a range (starting on a particular cell)
The function in lotus script is written like this...
Sub filepath
Dim filename As String,filepath As String,ext As String
ext=".txt"
filename$=filepath+filename+ext
[a:b2..a:s150].Rangecombinetext filename$
finished:
End Sub
So the main function call of this code is the "Rangecombinetext"
Is there a similar proceedure in excel ? and if so, would I be able to
pop up a file search box so the user can select the file to import ?
Many thanks in advance.
You can email me direct with any responses to mbrady@bigpond.net.au
Mark