Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default automatic formatting on import of .DIF files

I am extracting data from another application and outputting a .DIF file.
When I open this file in EXCEL, the cells are individually formatted such
that, even though the field is a text field, some of the data does not
contain "text" characters, only numbers. Excel automatically converts those
to a number format and thus removes any leading zeros, which renders the data
useless. Alternatively, if the data is numeric except there is an "E" in it,
EXCEL converts it to numeric with scientific notation -- again rendering it
useless. Preformatting the worksheet doesn't work because EXCEL opens a new
worksheet when you "open". I could use some ideas on how to work around this
problem. I only have limited output options from my application database
(unfortunately, ODBC is not one of them.)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default automatic formatting on import of .DIF files

I am having the same problem with converting data from Excel to DIF
formatting. Were you able to resolve this problem and if so how did you?



"Ken Ent" wrote:

I am extracting data from another application and outputting a .DIF file.
When I open this file in EXCEL, the cells are individually formatted such
that, even though the field is a text field, some of the data does not
contain "text" characters, only numbers. Excel automatically converts those
to a number format and thus removes any leading zeros, which renders the data
useless. Alternatively, if the data is numeric except there is an "E" in it,
EXCEL converts it to numeric with scientific notation -- again rendering it
useless. Preformatting the worksheet doesn't work because EXCEL opens a new
worksheet when you "open". I could use some ideas on how to work around this
problem. I only have limited output options from my application database
(unfortunately, ODBC is not one of them.)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default automatic formatting on import of .DIF files

Name your input file as .txt (not as .csv). When you read it in through the
text import wizard, specify the format of each of the relevant columns to be
Text, rather than letting it default to General.
--
David Biddulph

"johnwy" wrote in message
...
I am having the same problem with converting data from Excel to DIF
formatting. Were you able to resolve this problem and if so how did you?



"Ken Ent" wrote:

I am extracting data from another application and outputting a .DIF file.
When I open this file in EXCEL, the cells are individually formatted such
that, even though the field is a text field, some of the data does not
contain "text" characters, only numbers. Excel automatically converts
those
to a number format and thus removes any leading zeros, which renders the
data
useless. Alternatively, if the data is numeric except there is an "E" in
it,
EXCEL converts it to numeric with scientific notation -- again rendering
it
useless. Preformatting the worksheet doesn't work because EXCEL opens a
new
worksheet when you "open". I could use some ideas on how to work around
this
problem. I only have limited output options from my application database
(unfortunately, ODBC is not one of them.)



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default automatic formatting on import of .DIF files

To open a pre-formatted workbook you must create a template workbook which
overrides the default workbook Excel provides.

Open a new workbook. Customize as you wish.

FileSave As Type: scroll down to Excel Template(*.XLT) and select. Name your
workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.

Store this workbook in the XLSTART folder usually located at........

C:\Documents and Settings\username\Application Data\Microsoft\Excel\XLSTART

This will be the default workbook for FileNew or the Toolbar button FileNew or
CTRL + n

WARNING................Do not use FileNew...Blank Workbook or you will get the
Excel default workbook.

NOTE: Existing workbooks are not affected by these settings.

You can also open a new workbook and delete all but one sheet. Customize as
you wish then save this as SHEET.XLT in XLSTART folder also. It now becomes
the default InsertSheet.

More can be found on this in Help under "templates"(no quotes).


Gord Dibben Excel MVP

On Wed, 26 Sep 2007 09:24:03 -0700, johnwy
wrote:

Preformatting the worksheet doesn't work because EXCEL opens a new
worksheet when you "open".


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
Annoying automatic date-formatting on import... how to remove it? Jose McNach Excel Discussion (Misc queries) 2 June 2nd 06 02:40 PM
How to import automatic corrections from Word to Excel? ofreeb Setting up and Configuration of Excel 1 August 2nd 05 04:34 PM
import csv without automatic date conversion shinta Excel Discussion (Misc queries) 1 May 10th 05 04:28 PM
automatic import from excel Phil H Excel Discussion (Misc queries) 3 May 2nd 05 08:38 PM
Automatic Data Import TxRaistlin Excel Discussion (Misc queries) 2 February 4th 05 10:43 PM


All times are GMT +1. The time now is 12:43 PM.

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"