+ Reply to Thread
Results 1 to 7 of 7

Date Format Problem

Hybrid View

babarorhum Date Format Problem 12-05-2008, 07:04 AM
arthurbr Hi, try the following:... 12-05-2008, 07:27 AM
mudraker Try this select column or... 12-05-2008, 07:42 AM
babarorhum date format, conversion... 12-09-2008, 04:28 AM
JBeaucaire Not sure what you may be... 12-09-2008, 05:37 AM
babarorhum Date Format Problem 12-10-2008, 09:13 AM
arthurbr Avec plaisir ! 12-10-2008, 09:18 AM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Not sure what you may be doing differently since this is the proper method.

    Try running this macro on the sheet where the dates reside. It presumes the data is in the B column starting at cell B2. Adjust the macro to point to the first cell.

    Also, you will have to highlight all the date cells before activating the macro:
    Sub DateConvert()
        Selection.TextToColumns Destination:=Range("B2"), DataType:=xlDelimited, _
            TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
            Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
            :=Array(1, 3), TrailingMinusNumbers:=True
    End Sub
    This does result i n all dates right-flush in the proper format.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Registered User
    Join Date
    08-16-2008
    Location
    france
    Posts
    15

    Date Format Problem

    Hi !
    I've changed the date format to MDY in the last step and it works like a charm ! I thought the last option dealt with the output format but it was the input format (format#1 in the example).
    Thanks everyone for the help!

    Antony
    Last edited by babarorhum; 12-10-2008 at 09:25 AM. Reason: spelling mistakes

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1