If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Export from text file to Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-27-04, 04:58
GongXi GongXi is offline
Registered User
 
Join Date: Jun 2004
Posts: 57
Export from text file to Excel

Hi,

have any idea to export text file info to excel?
Reply With Quote
  #2 (permalink)  
Old 08-27-04, 06:08
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
what's your file like, If there is a common delimitter(such as commas)? then you can import as text delimitted
or you can use fixed width if there is equal spacing
you should just be able to open the file and run through the wizard

or you could copy and paste the text into the workbook and work with it from there
if your still having problems post back
Reply With Quote
  #3 (permalink)  
Old 08-29-04, 21:22
GongXi GongXi is offline
Registered User
 
Join Date: Jun 2004
Posts: 57
Hi,

Actually what we want to do is, we have one report which will print out in text format, and we have one option for user to export it to Excel format.

we can not add delimiters in text file becoz the text file will be print out by customer as report also.

Currently we fixed the field length for detail part, but when user request to print header and footer as well, the alignment will be out. The header and footer info will be chop off to the length we set for detail.

FYI, we are using Delphi.
Reply With Quote
  #4 (permalink)  
Old 08-30-04, 10:21
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Im afraid i don't know to much about delphi, I could do this in VB or VBA, depends on how you want to do this, i could show you a routine for getting your file accross with VBA and what you could set delphi to do is to open the macro book instead of the transported text,

Dave
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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