Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Permanently Disable Auto Formatting of Cell Content

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lazzaroni - 31 Oct 2006 19:13 GMT
Anyone know of a method for programmatically disabling ALL auto cell
formatting?

For instance, if Excel detects cell content that looks like a date, it will
change the NumberFormatLocal property for the cell to a custom date format.

That is only one example. I simply want to turn off ALL auto formatting to
ensure no data corruption.

Thanks for your help.
Lazzaroni - 31 Oct 2006 19:47 GMT
Incidentally, I am already aware that placing a single apostrophe (') in
front of a cell value causes Excel to treat the value as text. I am looking
for a way to really turn off all auto-formatting permanently for all cells.
Lazzaroni - 31 Oct 2006 19:47 GMT
> Anyone know of a method for programmatically disabling ALL auto cell
> formatting?
[quoted text clipped - 6 lines]
>
> Thanks for your help.
Lazzaroni - 01 Nov 2006 00:00 GMT
I have yet to find any way to permanently disable "Auto Number Formatting" in
Excel, programmatically or otherwise. I have, however, discovered that this
problem is much more serious than I had initially thought.

The following is a link to a report entitled "Gene name errors can be
introduced inadvertently when using Excel in bioinformatics."

http://www.biomedcentral.com/1471-2105/5/80

And this is a link describing the problem on Microsoft Support:

http://support.microsoft.com/kb/214233/

This is an article describing WebDisableDateRecognition, which is
essentially what I need, except that it only works "when the query table's
QueryType property is set to xlWebQuery and the query returns an HTML
document." I use QueryTables.Add to add a query table of type xlODBCQuery.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaxl11/html/xl
proWebDisableDateRecognition_HV05272589.asp


But again, I am actually looking for a way to GLOBALLY disable Auto Number
Formatting in Excel. I want to kill it, once and for all. Until Auto Number
Formatting is gone forever nobody can ever be sure that their data is safe
from corruption.

If I can't find a way to disable Auto Number Formatting, I am going to start
looking for an alternative to using Excel. So I hope that someone out there
knows an object or registry edit.

Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.