Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How do I convert Dates from Text back to Date format using macros

Hi
tryx something like

with activesheet.range("A1:A100")
..numberformat="MM/DD/YYYY"
..value=.value
end with

-----Original Message-----
My dates seem to be storing as text when being written

from a user form... Is there any way to convert these
programmatically??? If I manually convert text to columns
and select date.. it shows correctly and will sort
properly.. VBA doesn't seem to be carrying the formatting
style back from the user form even though it is specified
as format(..., ""MMM-DD-YY") because when it sorts.. it
as though it is text not a date... How can I get it back
to date format???? The user will not know how to do this
so.. I need to somehow do it in a macro or in vba. The
data is dynamic.
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i convert dates to text but keep the date format SallyP Excel Worksheet Functions 1 April 13th 10 10:01 PM
dates from inhouse system download as text.Convert back to date? ShazBat Excel Worksheet Functions 1 October 9th 09 11:32 AM
Excel - convert dates to text but appear as a date format Michele Excel Discussion (Misc queries) 3 May 21st 09 02:58 AM
Convert SERIAL date back into dd/mm/yy format? Aussie CPA Excel Worksheet Functions 6 September 30th 05 02:05 AM
How do I convert dates to text keeping the format? sprlarry Excel Discussion (Misc queries) 3 May 16th 05 06:06 AM


All times are GMT +1. The time now is 10:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"