PC Review


Reply
Thread Tools Rate Thread

Date format.

 
 
Heera
Guest
Posts: n/a
 
      13th Oct 2010
Hi All

Here is my problem.

I have a tracker in which some users update dates in a column. Column
A has the user names and Column B has the dates updated by the users.
I have updated the actual dates in Column C

Users Date Updated Actual Dates
User1 3/9/10 Actual date is 03-Sep-10
User2 03/09/10 Actual date is 03-Sep-10
User3 03/09/2010 Actual date is 03-Sep-10
User4 9/3/10 Actual date is 03-Sep-10
User5 09/03/10 Actual date is 03-Sep-10
User6 09/03/2010 Actual date is 03-Sep-10
User7 09.03.10 Actual date is 03-Sep-10
User8 03-09-10 Actual date is 03-Sep-10
User9 09-03-10 Actual date is 03-Sep-10
User10 03-Sep-2010 Actual date is 03-Sep-10
User11 03-09-2010 Actual date is 03-Sep-10


I want to make sure that the date is update in dd-mmm-yy format
only.
I used the below codes but I am not getting the desired results it is
converting months into days and days into month.

ActiveCell.Offset(0, 4).NumberFormat = "[$-409]dd-mmm-yy;@"
ActiveCell.Offset(0, 4).Value = Format(ActiveCell.Offset(0, 4).Value,
"dd-mmm-yy")

I want to be sure that the date updated in the cell is getting
displayed is in dd-mmm-yy format. I want the macro to make sure the
date is updated in the dd-mmm-yy format only.
It will be greate if an message pop-ups if the format is incorrect.

Please help........................

Regards
Heera Chavan
 
Reply With Quote
 
 
 
 
Heera
Guest
Posts: n/a
 
      14th Oct 2010
Thank you Ron.

Really appriciate your comment.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting complex date format to normal date format in Excel BlackNarcissus Microsoft Excel Misc 0 28th Jul 2011 04:28 PM
permanent conversion of 1904 date format to 1900 date format Jos Microsoft Excel Worksheet Functions 3 21st Jul 2009 06:32 PM
converting general date format data into short date format savigliano Microsoft Access Form Coding 3 27th Nov 2006 04:37 AM
code to convert date from TEXT format (03-02) to DATE format (200203) Gauthier Microsoft Excel Programming 0 22nd Sep 2004 03:26 PM
Change a date in text format xx.xx.20xx to a recognised date format concatenator Microsoft Excel Programming 1 24th Nov 2003 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.