epxort to excel removes trailing 0's

  • Thread starter Thread starter Rommi Saar
  • Start date Start date
R

Rommi Saar

Hi!

The problem is that when exporting data to Excel thinks thant "0000123" is a
number. How to tell Excel that this field is text? Is there any way to call
the import wizard during exporting to Excel? That would let user select
which columns contain text. Inserting ' behind all fields is not good.

Thanks,

Rommi
 
you can put all the data in one column, then let the user do Data=>Text to
columns which will bring up the import wizard.
 
I'm currently using something like that:

ShellExecute(0,'open','excel',PChar('filename.txt"'),nil,SW_SHOWNORMAL);
 

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

Back
Top