PC Review


Reply
Thread Tools Rate Thread

How can I stop date formatting?

 
 
=?Utf-8?B?QnJ1Y2UgQm9saW8=?=
Guest
Posts: n/a
 
      9th Mar 2007
I have a spreadsheet that collects data that I load directly into a database.
There is a column, "eff date" which I use to collect what look like dates,
but they are really strings (database requirement). I've set the number
format for the eff date column to "Text". This is working as far as typical
data entry goes. Example:

Eff Date
2007-03-01
9999-12-31
2001-10-10
....

But when users do a find/replace on this column, and for example, replace
all the 9999-12-31 values with 2010-12-31, it reformats the 2010-12-31 to
12/31/2010, changes the cell from "Text" to "Date". Then I can't import it
into the database without additional manipulation.

Is there any way I can programmatically through vba shut off this date
formatting off on find/replace? I'm working with Excel 2003.

--
Thanks,

Bruce Bolio
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      9th Mar 2007
I doubt it, Think would need to write a macro to loop throught the column,
making the change and preserving the value as text using the single quote.

--
Regards,
Tom Ogilvy


"Bruce Bolio" wrote:

> I have a spreadsheet that collects data that I load directly into a database.
> There is a column, "eff date" which I use to collect what look like dates,
> but they are really strings (database requirement). I've set the number
> format for the eff date column to "Text". This is working as far as typical
> data entry goes. Example:
>
> Eff Date
> 2007-03-01
> 9999-12-31
> 2001-10-10
> ...
>
> But when users do a find/replace on this column, and for example, replace
> all the 9999-12-31 values with 2010-12-31, it reformats the 2010-12-31 to
> 12/31/2010, changes the cell from "Text" to "Date". Then I can't import it
> into the database without additional manipulation.
>
> Is there any way I can programmatically through vba shut off this date
> formatting off on find/replace? I'm working with Excel 2003.
>
> --
> Thanks,
>
> Bruce Bolio

 
Reply With Quote
 
=?Utf-8?B?QnJ1Y2UgQm9saW8=?=
Guest
Posts: n/a
 
      9th Mar 2007
That's what I wound up doing, I was hoping there was something more elegant.
Thanks!

--
Thanks,

Bruce Bolio


"Tom Ogilvy" wrote:

> I doubt it, Think would need to write a macro to loop throught the column,
> making the change and preserving the value as text using the single quote.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Bruce Bolio" wrote:
>
> > I have a spreadsheet that collects data that I load directly into a database.
> > There is a column, "eff date" which I use to collect what look like dates,
> > but they are really strings (database requirement). I've set the number
> > format for the eff date column to "Text". This is working as far as typical
> > data entry goes. Example:
> >
> > Eff Date
> > 2007-03-01
> > 9999-12-31
> > 2001-10-10
> > ...
> >
> > But when users do a find/replace on this column, and for example, replace
> > all the 9999-12-31 values with 2010-12-31, it reformats the 2010-12-31 to
> > 12/31/2010, changes the cell from "Text" to "Date". Then I can't import it
> > into the database without additional manipulation.
> >
> > Is there any way I can programmatically through vba shut off this date
> > formatting off on find/replace? I'm working with Excel 2003.
> >
> > --
> > Thanks,
> >
> > Bruce Bolio

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
html output to file *.xls - how to stop date formatting <td>01-01</td> cate Microsoft Excel Programming 0 23rd Feb 2011 05:54 PM
Outlook 2007 Task: stop Reminder date set AFTER Due date Rebekah Microsoft Outlook Discussion 1 13th Mar 2009 04:47 AM
Stop automatic formatting of cells (number, text, date, etc) Marcela Microsoft Excel Worksheet Functions 4 9th Jun 2008 08:09 PM
Is it possible to get Excel to stop formatting text as a date? PeteeWJ Microsoft Excel Misc 2 12th May 2008 06:28 PM
Stop changing the date of a previously saved doc to today's date! =?Utf-8?B?bWVyY2VkZXNtaWtl?= Microsoft Word Document Management 1 25th May 2006 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 AM.