Microsoft Office Forums


Reply
Thread Tools Display Modes

Excel date format convert to string format

 
 
man
Guest
Posts: n/a

 
      08-17-2006, 08:30 AM
I have this problem
I would like to change a column format from (m.d.yyyy <== date format) to
(m.d.yyyy <== string format)

Any method I can use ?

thanks in advance
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a

 
      08-17-2006, 09:00 AM
Enter this macro:

Sub gsnu()
Dim s As String
For Each r In Selection
s = r.Value
r.Clear
r.NumberFormat = "@"
r.Value = s
Next
End Sub

Then select the cells to be converted and run the macro.
--
Gary's Student


"man" wrote:

> I have this problem
> I would like to change a column format from (m.d.yyyy <== date format) to
> (m.d.yyyy <== string format)
>
> Any method I can use ?
>
> thanks in advance

 
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert time format to decimal format for excel? Tim Access Newsgroup 1 12-07-2007 06:11 PM
Convert Julian (Date) to Short Date Format SKB Access Newsgroup 2 09-20-2005 03:55 PM
Convert Strings into date format ANStech Access Newsgroup 4 06-30-2005 04:06 AM
Converting string reprentation of date to Date format underhill Excel Newsgroup 3 01-12-2004 02:13 AM
How to convert Excel serial date into Access date format? RADO Access Newsgroup 2 12-27-2003 11:14 AM



All times are GMT. The time now is 02:02 PM.