+ Reply to Thread
Results 1 to 2 of 2

Text to Column to resolve date format issue

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    Kent, England
    MS-Off Ver
    365
    Posts
    1

    Text to Column to resolve date format issue

    I have a weird situation where a macro is copying a large amount of data from one report in to another, some of the data is dates, once copied the date (originally dd/mm/yy) becomes dd/mm/yy hh:mm:ss. It does not recognise it as a format so updating cell format does not resolve it, however when manually running text to columns with no delimeters and format as D/M/Y it resolves my issue. If I add this step in to VBA it never seems to work. But as soon as I do the same manually it works, would anybody know why this is? I have also tried formatting the original data dates before it gets copied to see if that resolves anything with no success. The below is what is not working in VBA:



    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,606

    Re: Text to Column to resolve date format issue

    Post a sample workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Issue with Date conversion from Text to CDate with Format
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2019, 12:23 PM
  2. Text to column (CSV) date formating issue
    By magicb in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-17-2019, 08:06 AM
  3. [SOLVED] simple (hopefully) date/text format issue
    By gee83 in forum Excel General
    Replies: 3
    Last Post: 01-11-2018, 11:19 AM
  4. Replies: 4
    Last Post: 04-29-2015, 08:36 AM
  5. Please help to resolve the excel issue
    By angeld27 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-03-2012, 07:39 AM
  6. Is an IF command the best to resolve this issue?
    By dellf in forum Excel General
    Replies: 1
    Last Post: 09-25-2009, 11:34 AM
  7. [SOLVED] [SOLVED] Another issue to resolve
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-20-2005, 05:06 PM

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