+ Reply to Thread
Results 1 to 3 of 3

Formatting a date from a VBA input box

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Formatting a date from a VBA input box

    Hi all,

    I'm trying to get somthing to work in a function I'm using where a user has to enter a date. Whilst I have made sure in the input box the user enters in the format DD/MM/YYYY, it relies on the user reading the format. I want to make it fool proof so if someone enters 31/01/14, 31-01-2014, 31/1/14 etc that it pastes into the cell its going in, in the format of 31/01/2014.

    Please Login or Register  to view this content.
    Thanks in advance

    John

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Formatting a date from a VBA input box

    Try it this way.


    Please Login or Register  to view this content.
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Re: Formatting a date from a VBA input box

    Works OK, Thanks

+ 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