Import data from Text file using macros
Hi
I am a newbie :friends:
I would like to do the following:
- have a set of data in text file (.txt) perhaps from Notepad
- import the data & paste into Excel , will be in 2 columns format
- plot a graph (x-y axes)
As simple as that but I don't know how to do it using VBA macros
Please advise :help
TQ
Re: Import data from Text file using macros
thanks for the reply
actually i need an array of data like so:
1 2 3 4 5
6 7 8 9 10
etc.
to be put onto Excel using VBA , which will display instead of rows it will be just 2 columns (transposed) like so
1 6
2 7
3 8
4 9
5 10
I created a command Button to perform the importing job
but doesn't know the code/syntax
hope this helps
:doh:
TQ