Results 1 to 4 of 4

Swapping symbol "." for "/" without changing the date format

Threaded View

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Swapping symbol "." for "/" without changing the date format

    Heya,

    I'm downloading some data from the system and I need to change the formatting from dd.mm.yyyy (downloaded as text) to dd/mm/yyyy (formatted as date).

    I'm using code as below, but for some reason it's swapping days and months around (dd.mm.yyyy becomes mm/dd/yyyy)

    Is there any way to do it?

            Columns("H:H").Select
            Selection.Replace What:=".", Replacement:="/", LookAt:=xlPart, _
            SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False
    Thanks,
    Al
    Last edited by alxes; 12-12-2017 at 11:28 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  4. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  5. Changing format of column from "general" to "currency"
    By Old Car in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM
  6. Changing format of column from "general" to "currency"
    By Old Car in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM
  7. [SOLVED] Changing format of column from "general" to "currency"
    By Old Car in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM

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