assume the date is 12/10/2014, if i type 12 (frist two digit date), macro to change the format like 12/10/2014
assume the date is 12/10/2014, if i type 12 (frist two digit date), macro to change the format like 12/10/2014
Hi,
Why don't you format the cell / column to custom date format which suits your requirement. Why do you need macro?
Regards,
Paresh J
Click on "* Add Reputation" as a way to say thanks
Try the below one
Please Login or Register to view this content.
RoyalRajan
if i type 2, i need to get it like this 02/10/2014
if you type 2/10 will get 02/10/2014. my question is if i type 2, will get 02/10/2014 (current month and year has to be updated)
Assuming that you want to convert dates in col. A, then place the below code for worksheet change event in Sheet Module.
Is this what you are trying to achieve?Please Login or Register to view this content.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
sktneer
this is the one i asked for, it is working good
thank you
You're welcome.
If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
Moreover you may also click on * (star) to Add Reputation if the solution provided helped you. This is another way to say thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks