#1   Report Post  
Gary''s Student
 
Posts: n/a
Default importing csv

I periodically import .cvs files that contain data like

0000
00
00000
0

at various places in the file. I need to capture the correct characters in
Excel. Because Excel insists on dropping leading zeros, I am forced to
rename the file as .txt before opening it. I can then tell the import wizard
to treat the data as text.

Is there a better way?
--
Gary's Student
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default importing csv

This seems like the easiest way to me.

Well, if the files that you import all have the same layout, you could record a
macro that imports the data. The macro would still specify the fields the way
you like them.

You could even add headers/footers/print settings/filters/etc to your macro.

Then just run that macro when you need to import that data.

(Yes, you'd still have to rename the file to .txt, though.)


Gary''s Student wrote:

I periodically import .cvs files that contain data like

0000
00
00000
0

at various places in the file. I need to capture the correct characters in
Excel. Because Excel insists on dropping leading zeros, I am forced to
rename the file as .txt before opening it. I can then tell the import wizard
to treat the data as text.

Is there a better way?
--
Gary's Student


--

Dave Peterson
  #3   Report Post  
Gary''s Student
 
Posts: n/a
Default importing csv

Thank you
--
Gary's Student


"Dave Peterson" wrote:

This seems like the easiest way to me.

Well, if the files that you import all have the same layout, you could record a
macro that imports the data. The macro would still specify the fields the way
you like them.

You could even add headers/footers/print settings/filters/etc to your macro.

Then just run that macro when you need to import that data.

(Yes, you'd still have to rename the file to .txt, though.)


Gary''s Student wrote:

I periodically import .cvs files that contain data like

0000
00
00000
0

at various places in the file. I need to capture the correct characters in
Excel. Because Excel insists on dropping leading zeros, I am forced to
rename the file as .txt before opening it. I can then tell the import wizard
to treat the data as text.

Is there a better way?
--
Gary's Student


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IMPORTING WORD DOCUMENT INTO EXCEL cynjor312 Excel Discussion (Misc queries) 1 November 3rd 05 11:34 PM
number of fields exceeds 256 when importing from a dbf file Chris Excel Discussion (Misc queries) 5 July 14th 05 09:49 PM
Importing data into excel Martina Excel Worksheet Functions 7 June 27th 05 08:11 AM
Importing text file Jillianno Excel Discussion (Misc queries) 1 February 16th 05 06:47 PM
How to import a path/filename when importing data into an XML list cxparker Excel Worksheet Functions 0 December 7th 04 10:13 PM


All times are GMT +1. The time now is 11:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"