Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Globally define all Excel worksheets as text

Hi all,

Excel stores numbers with 16-digit precision. We work
with numbers that are larger than that, so they get
truncated. The numbers come from a CSV file created by
another application, so I can't define a column as text
and then paste in the numbers.

Is there a way to globally define Excel so as to
say "treat every workbook that you open as being all text
cells...don't convert anything into numbers."

TIA
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Globally define all Excel worksheets as text

Typical workaround is to simply rename the csv file with a .txt extension and
then use the Import wizard and define that column as text in the wizard during
the import.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Paul" wrote in message
...
Hi all,

Excel stores numbers with 16-digit precision. We work
with numbers that are larger than that, so they get
truncated. The numbers come from a CSV file created by
another application, so I can't define a column as text
and then paste in the numbers.

Is there a way to globally define Excel so as to
say "treat every workbook that you open as being all text
cells...don't convert anything into numbers."

TIA
Paul




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 27/01/2004


  #3   Report Post  
Posted to microsoft.public.excel.programming
whm whm is offline
external usenet poster
 
Posts: 1
Default Globally define all Excel worksheets as text

I have recorded this in Excel 2003.
I Think it will also work in earlier versions.

Sub AllCellsAsText()
'
' AllCellsAsText Macro
' Macro recorded 29-1-2004 by Wouter Magré
'

'
Cells.Select
Selection.NumberFormat = "@"
End Sub


It can changed into the next line of code.
So will de complet shot NOT be selected

Cells.NumberFormat = "@

--
Message posted from http://www.ExcelForum.com

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
globally adding a value across worksheets Karina M ) Excel Discussion (Misc queries) 6 October 21st 09 10:00 PM
add values across 26 worksheets globally Karina M ) Excel Discussion (Misc queries) 3 October 21st 09 06:02 PM
Globally change print settings for several worksheets at the same JDD Excel Discussion (Misc queries) 1 June 2nd 06 07:29 PM
Define list of worksheets Judy Ward Excel Worksheet Functions 4 June 15th 05 09:44 PM
Define a range globally Debbie[_7_] Excel Programming 2 December 24th 03 01:13 AM


All times are GMT +1. The time now is 05:20 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"