LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Format date macro

I tried to make a macro to format the date into the configuration I
need. It is going from 01/01/2007 to 2007-01-01

It is part of a larger macro that does a host of things but this part
was:

Columns("M:M").Select
Selection.NumberFormat = "yyyy-mm-dd"

Columns("J:J").Select
Selection.NumberFormat = "yyyy-mm-dd"

however, when I run the macro the date comes out as 01-01-tuesday.
Does any one know what might be happening here and how i can fix it?

Thanks!

 
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
Message box date format macro help Aaron Excel Worksheet Functions 2 June 16th 09 08:16 AM
Message box date format macro help Aaron Excel Worksheet Functions 2 June 16th 09 07:17 AM
Date Format Macro Problem joecrabtree Excel Programming 4 December 20th 06 02:58 PM
Macro SaveAs - Date format jonnyhbgood Excel Programming 2 March 9th 06 06:37 PM
Macro to format date sw Excel Programming 4 October 15th 03 01:23 PM


All times are GMT +1. The time now is 03:08 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"