+ Reply to Thread
Results 1 to 4 of 4

Converting Text Date to Actual Date using VBA

  1. #1
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    Converting Text Date to Actual Date using VBA

    Hello,

    I have a text list that download's into my sheet into column B and the dates are in text format as dd/mm/yyyy, at present I'm using Text to Columns to convert it to an actual date.

    Is there a way of doing this within VBA?

    thanks reg

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Converting Text Date to Actual Date using VBA

    cDate(Your date value)

    Be aware that if the text your are feeding to cDate is not really a date then this will cause an error.

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    Re: Converting Text Date to Actual Date using VBA

    Thanks Whizbang,

    How do I use it in a macro or as Text to Columns??

    thanks reg

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Converting Text Date to Actual Date using VBA

    Use it as a macro

    Please Login or Register  to view this content.

+ 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