PC Review


Reply
Thread Tools Rate Thread

DATE IN TEXT FORM - NEED TO CHANGE IT DATE FORM

 
 
SSJ
Guest
Posts: n/a
 
      27th Oct 2006
Hello!

When I download data into excel some of the dates in the data comes as:

2Sep'06


I edit the cell by taking out the apostrophe and the value becomes a date. What formula / function can I use to take out or clean this apostrophe and make it a date?

Thanks
SJ
 
Reply With Quote
 
 
 
 
Sandy
Guest
Posts: n/a
 
      27th Oct 2006
Try this,

open vbe(alt + F11) paste code into a new module(insert ==> module).
Then select the dates you want fixed and run code.

Sub Test()
Dim mcell As Range
For Each mcell In Selection
mcell.Value = Replace(mcell, "'", "")
Next
End Sub


Sandy


SSJ wrote:
> Hello!
>
> When I download data into excel some of the dates in the data comes as:
>
> 2Sep'06
>
>
> I edit the cell by taking out the apostrophe and the value becomes a date. What formula / function can I use to take out or clean this apostrophe and make it a date?
>
> Thanks
> SJ
> ------=_NextPart_000_0009_01C6F9BE.10874200
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 1526
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.2900.2963" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Tahoma>Hello!</FONT></DIV>
> <DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
> <DIV><FONT face=Tahoma>When I download data into excel some of the dates in the
> data comes as:</FONT></DIV>
> <DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
> <DIV>
> <TABLE style="WIDTH: 55pt; BORDER-COLLAPSE: collapse" cellSpacing=0
> cellPadding=0 width=73 border=0 x:str>
> <COLGROUP><FONT face=Tahoma>
> <COL style="WIDTH: 55pt; mso-width-source: userset; mso-width-alt: 2336"
> width=73></FONT>
> <TBODY>
> <TR style="HEIGHT: 14.25pt" height=19>
> <TD class=xl24
> style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 55pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent"
> width=73 height=19><FONT
> face=Tahoma>2Sep'06</FONT></TD></TR></TBODY></TABLE></DIV>
> <DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
> <DIV><FONT face=Tahoma>I edit the cell by taking out the apostrophe and the
> value becomes a date. What formula / function can I use to take out or clean
> this apostrophe and make it a date?</FONT></DIV>
> <DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
> <DIV><FONT face=Tahoma>Thanks</FONT></DIV>
> <DIV><FONT face=Tahoma>SJ</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_0009_01C6F9BE.10874200--


 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      27th Oct 2006
Try this:

Select your range of "dates"

From the Excel main menu:
<edit><replace>
Find what: ~'
Replace with: (leave this blank)
Click the [Replace All] button

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"SSJ" wrote:

> Hello!
>
> When I download data into excel some of the dates in the data comes as:
>
> 2Sep'06
>
>
> I edit the cell by taking out the apostrophe and the value becomes a date. What formula / function can I use to take out or clean this apostrophe and make it a date?
>
> Thanks
> SJ

 
Reply With Quote
 
SSJ
Guest
Posts: n/a
 
      27th Oct 2006
Ron,

Beauuuuuuuuuuuuuuutiful! This is exactly what I was looking for.

Thanks
SJ

"Ron Coderre" <(E-Mail Removed)> wrote in message
news:0F4F1DB0-5467-4F4B-89D6-(E-Mail Removed)...
> Try this:
>
> Select your range of "dates"
>
> From the Excel main menu:
> <edit><replace>
> Find what: ~'
> Replace with: (leave this blank)
> Click the [Replace All] button
>
> Does that help?
> ***********
> Regards,
> Ron
>
> XL2002, WinXP
>
>
> "SSJ" wrote:
>
>> Hello!
>>
>> When I download data into excel some of the dates in the data comes as:
>>
>> 2Sep'06
>>
>>
>> I edit the cell by taking out the apostrophe and the value becomes a
>> date. What formula / function can I use to take out or clean this
>> apostrophe and make it a date?
>>
>> Thanks
>> SJ



 
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
Text Form Date Mary Fetsch Microsoft Word Document Management 3 25th Feb 2010 02:55 PM
how do I change date autocomplete in a form? Longman Microsoft Outlook Form Programming 0 4th Feb 2010 08:30 PM
read only form allows date to change =?Utf-8?B?c3VlIGdyYXk=?= Microsoft Access Forms 4 27th Apr 2007 04:21 PM
DATE IN TEXT FORM - NEED TO CHANGE IT DATE FORM SSJ Microsoft Excel Discussion 3 27th Oct 2006 08:34 PM
Update date after change in form Jason Frazer Microsoft Access Forms 2 27th Aug 2003 04:19 PM


Features
 

Advertising
 

Newsgroups
 


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