Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default removing date from field

Hello -

I have a field that has both the date and the time in it, but what vba code
can i use to extract the date only? Thanks in advance to anyone who can help
me.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default removing date from field

Hi

Try this

Int(ActiveCell.Value)



--
Regards Ron de Bruin
http://www.rondebruin.nl


"LHaro" wrote in message ...
Hello -

I have a field that has both the date and the time in it, but what vba code
can i use to extract the date only? Thanks in advance to anyone who can help
me.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default removing date from field

Thank U so much!

"Ron de Bruin" wrote:

Hi

Try this

Int(ActiveCell.Value)



--
Regards Ron de Bruin
http://www.rondebruin.nl


"LHaro" wrote in message ...
Hello -

I have a field that has both the date and the time in it, but what vba code
can i use to extract the date only? Thanks in advance to anyone who can help
me.




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
removing/ignoring time in a date time field Jeff Excel Discussion (Misc queries) 2 July 18th 08 07:35 PM
New date based on one date field minus minutes in another field [email protected] Excel Discussion (Misc queries) 1 December 25th 07 04:05 PM
Removing characters from datetime field Sujesh Excel Discussion (Misc queries) 3 July 14th 05 03:22 PM
removing character from field adibranch Excel Worksheet Functions 8 May 26th 05 12:05 PM
Removing the : in the coment field Kathy Excel Discussion (Misc queries) 1 February 25th 05 03:24 AM


All times are GMT +1. The time now is 09:51 AM.

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

About Us

"It's about Microsoft Excel"