Excel date format convert to string format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top