Results 1 to 14 of 14

VBA solution to convert mixed UK/US date formats

Threaded View

  1. #5
    Registered User
    Join Date
    05-07-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2016, 365
    Posts
    7

    Re: VBA solution to convert mixed UK/US date formats

    Thanks, below is more of the macro I use to import the data:

    ChDir "C:\Export"
        Workbooks.Open Filename:="C:\Export\DEBTP.csv"
        Range("A1:L150000").Select
        Selection.Copy
        Windows(ThisWorkbook.Name).Activate
        Sheets("DEBTP").Visible = True
        Sheets("DEBTP").Select
        Range("A2").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Application.CutCopyMode = False
        Application.CommandBars("Office Clipboard").Visible = False
        Windows("DEBTP.csv").Activate
        ActiveWindow.Close
        Windows(ThisWorkbook.Name).Activate
        Sheets("DEBTP").Select
        Columns("C:C").Select
        Selection.TextToColumns Destination:=Range("C1"), DataType:=xlDelimited, _
            TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
            Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
            :=Array(1, 3), TrailingMinusNumbers:=True
        Range("A1").Select
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Convert date formats
    By asad.ermo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2018, 09:25 AM
  2. Replies: 19
    Last Post: 01-31-2016, 12:29 PM
  3. [SOLVED] mixed date formats in s/s, how to format
    By cal_chica in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2014, 06:22 PM
  4. Excel file has mixed date formats
    By pushnoyj in forum Excel General
    Replies: 1
    Last Post: 02-14-2014, 07:45 PM
  5. Mixed US and UK date formats in Excel Spreadsheet
    By Buntrock in forum Excel General
    Replies: 15
    Last Post: 11-07-2012, 10:58 AM
  6. Replies: 4
    Last Post: 08-25-2012, 07:49 AM
  7. Convert date formats mmm-yy to dd-mm-yy
    By acjarus in forum Excel General
    Replies: 10
    Last Post: 05-29-2012, 10:53 AM

Tags for this Thread

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