Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am importing some data into Excel from on old Wang system. I need to create a date field, but the date field as imported shows up as 1/11/2001 00:00:00. I would really appreciate some help in creating a macro that eliminates the 00:00:00 so I can just set the field up as a date field and have it sort correctly. Thank you, Adam |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Selection.NumberFormat = "mm/dd/yyyy"
-- Regards, Tom Ogilvy "Adam :: Oregon, USA" <Adam :: Oregon, wrote in message ... Hi all, I am importing some data into Excel from on old Wang system. I need to create a date field, but the date field as imported shows up as 1/11/2001 00:00:00. I would really appreciate some help in creating a macro that eliminates the 00:00:00 so I can just set the field up as a date field and have it sort correctly. Thank you, Adam |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
All date fields are really date time fields.
It is just formatting that make's them show one part or the other. Press Ctrl-1 and change the number format to one that you prefer. "Adam :: Oregon, USA" <Adam :: Oregon, wrote in message ... Hi all, I am importing some data into Excel from on old Wang system. I need to create a date field, but the date field as imported shows up as 1/11/2001 00:00:00. I would really appreciate some help in creating a macro that eliminates the 00:00:00 so I can just set the field up as a date field and have it sort correctly. Thank you, Adam |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, but Excel doesn't seem to recognize the cell entry as a date and
time field. I tried the other answer as well as changing the formatting to eliminate the time, but it doesn't seem to help. I can't change the format becuase Excel is not viewing the contents as a date with time appended. Thanks, Adam "Paul Lautman" wrote: All date fields are really date time fields. It is just formatting that make's them show one part or the other. Press Ctrl-1 and change the number format to one that you prefer. "Adam :: Oregon, USA" <Adam :: Oregon, wrote in message ... Hi all, I am importing some data into Excel from on old Wang system. I need to create a date field, but the date field as imported shows up as 1/11/2001 00:00:00. I would really appreciate some help in creating a macro that eliminates the 00:00:00 so I can just set the field up as a date field and have it sort correctly. Thank you, Adam |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
select the column
format as the date format you want to see Edit=Replace What: \ With: \ This should cause your data to be reevaluated and seen as dates. -- Regards, Tom Ogilvy "Adam :: Oregon, USA" wrote in message ... Thank you, but Excel doesn't seem to recognize the cell entry as a date and time field. I tried the other answer as well as changing the formatting to eliminate the time, but it doesn't seem to help. I can't change the format becuase Excel is not viewing the contents as a date with time appended. Thanks, Adam "Paul Lautman" wrote: All date fields are really date time fields. It is just formatting that make's them show one part or the other. Press Ctrl-1 and change the number format to one that you prefer. "Adam :: Oregon, USA" <Adam :: Oregon, wrote in message ... Hi all, I am importing some data into Excel from on old Wang system. I need to create a date field, but the date field as imported shows up as 1/11/2001 00:00:00. I would really appreciate some help in creating a macro that eliminates the 00:00:00 so I can just set the field up as a date field and have it sort correctly. Thank you, Adam |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know you meant a forward slash (/) rather than backslash (\), no?
On Thu, 21 Oct 2004 15:07:40 -0400, "Tom Ogilvy" wrote: select the column format as the date format you want to see Edit=Replace What: \ With: \ This should cause your data to be reevaluated and seen as dates. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Macro help? | Excel Discussion (Misc queries) | |||
Help with simple macro | Excel Discussion (Misc queries) | |||
Need Simple Macro | New Users to Excel | |||
Can't get simple macro to run | Excel Worksheet Functions | |||
Simple Macro | Excel Programming |