Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple Macro Help

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default Simple Macro Help

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple Macro Help

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple Macro Help

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Simple Macro Help

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
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
Simple Macro help? The Message Excel Discussion (Misc queries) 2 December 14th 09 05:14 PM
Help with simple macro Sam Commar Excel Discussion (Misc queries) 3 April 15th 08 04:30 PM
Need Simple Macro jreinert New Users to Excel 2 June 15th 06 03:58 PM
Can't get simple macro to run Abi Excel Worksheet Functions 5 January 12th 05 07:37 PM
Simple Macro saturnin02[_2_] Excel Programming 14 April 27th 04 01:35 AM


All times are GMT +1. The time now is 12:22 PM.

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"