+ Reply to Thread
Results 1 to 2 of 2

Change Text to Date using VBA

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Jersey
    MS-Off Ver
    Excel 2007
    Posts
    1

    Change Text to Date using VBA

    Hello there!

    I need to automate a process to change text in columns (e.g. 05 Sep 2012) to a date value. I have another macro that searches for future dates and deletes them, but as the dates are currently in the spreadsheet as text (and no way that I can get the source data differently) I must convert them first!

    Thank you in advance for any help...

    H

  2. #2
    Registered User
    Join Date
    03-08-2012
    Location
    Notts
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: Change Text to Date using VBA

    what sort of date value/format do you want?

    This code will change it to dd/mm/yy format:

    Selection.NumberFormat = "dd/mm/yy;@"

+ 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