Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a column of date data that is in text format by design. I want
to do a find and replace for this column to change "/2003" to "/03", "/2004" to "/04", etc. I have coded this into my macro, but Excel automatically sets the cell format to a date type when the find and replace occurs. Is there any way to stop this from happening? Can I lock the format of these cells? Thanks! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you place a single quote in front of each cell entry ('), it will be treated as text and the replace will leave the entry as
text. -- John Green - Excel MVP Sydney Australia "bslater" wrote in message ... I have a column of date data that is in text format by design. I want to do a find and replace for this column to change "/2003" to "/03", "/2004" to "/04", etc. I have coded this into my macro, but Excel automatically sets the cell format to a date type when the find and replace occurs. Is there any way to stop this from happening? Can I lock the format of these cells? Thanks! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find & Replace: find part cell, replace whole cell | Excel Worksheet Functions | |||
Find and Replace formatting formats the ENTIRE cell | Excel Discussion (Misc queries) | |||
Problems with number formats when using Find/Replace | Excel Discussion (Misc queries) | |||
Is it possible to do a Find/Replace on Conditional Formats? | Excel Worksheet Functions | |||
Find and Replace (mixed formats) | Excel Discussion (Misc queries) |