Opening text file in excel to maintain as "text"

E

Eric

Hi There,

I am writing a macro on how to open a text file in excel
in such as way that my file maintain a "number" text as a
text. Please see below for an example:

I want to open this in column as a text NOT a number.

Code IDNO Region
0001 12345 N1234
0002 35353 C3535
..
..
so on.

How do I do that?

Thanks in advance for your help.
Eric
 
E

Eric

KeepITcool,

I am not doing it in "manual" wizard I am doing this
in "macro" so, what is the command in macro that will
maintain the text column as a text when I open it in excel?
 
K

keepITcool

Eric,

the syntax depends on the number of columns etc
and may be a bit awkward as it requires an array..

try to use macrorecorder and see it you can edit the recorded code.
if you can't fix it.. plse post back with recorded code.


keepITcool

< email : keepitcool chello nl (with @ and .) >
< homepage: http://members.chello.nl/keepitcool >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top