LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Need Help Importing Text File Using Two or More Spaces as the Delimiter

Hello. I would really appreciate someone's help with my problem.

I have been asked to figure out a way to automate the import of text
files into Excel. The import process MUST be automated by a macro
because the users are not able to do this on their own.

I have tried manually importing the file into Excel two different ways:
1. When I import using the "Delimited" data type with "Space" as the
delimiter, it doesn't work because each word of the 3 rows of headings
are separated into separate columns because of the single space between
them.

2. When I import using the "Fixed Width" data type, it doesn't work
because all the text on one row is placed into the first cell of each
row and, therefore, the columns of numbers are not aligned.

I have included a simplified version of the text file below. Does
anyone know how I can make this file automatically import using
**MORE** than one space as the delimiter (so it doesn't mess up all the
headings)? I would really appreciate your help.

Thanks,
Jessi


BENTLEY AREA AUTHORITY


Service Work Log Report 05/04/2006 2:45pm Page 1


Staff ID Name SAL No Date Payroll ----Reported
Hours---

728739 BROWN 099999 05/04/2006 8:00 5:00 3:00
478920 SMITH 097584 05/03/2006 8:00 4:00 4:00
347822 CUNNINGHAM 038477 05/03/2006 8:00 4:30 3:30
482730 DENNY 088887 05/03/2006 10:00 4:00 6:00

********** Total ********** 34.0 17.5 16.5

 
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 PC-DOS PLAIN TEXT FILES WITH LEADING SPACES Robert1998 Excel Discussion (Misc queries) 4 October 22nd 08 06:16 AM
Need Help Importing Text File Using Two or More Spaces as the Delimiter [email protected] Excel Discussion (Misc queries) 11 June 13th 06 02:08 AM
Adding a delimiter when importing a txt file dfwboiler Excel Programming 0 March 27th 06 10:33 PM
Last Column(=spaces) is Dropped When Importing from .Txt file Ttown Excel Discussion (Misc queries) 3 June 24th 05 06:25 PM
export excel file as csv with text delimiter of " John Excel Discussion (Misc queries) 2 May 12th 05 05:50 PM


All times are GMT +1. The time now is 04:50 AM.

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

About Us

"It's about Microsoft Excel"