Results 1 to 3 of 3

Excel:How change the textbox format from text to date format?

Threaded View

  1. #1
    Registered User
    Join Date
    10-27-2013
    Location
    Ludwigsburg
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Excel:How change the textbox format from text to date format?

    Hi@all
    I am using Excel 2007 (German Version) and hope someone can help me with the following:
    I have created a user form with several input boxes. Two of these Boxes are TextBoxes that are used to get dates from a pic up calendar next to them. These dates are then transferred from the userform to a DataList (which is connected to a calendar that auto-populates itself from this DataList).

    calendar.jpg

    The problem is: The dates that are supplied from the userform TextBoxes to the DataList are dates in text format. So... I get valid numbers and everything seems to be O.K. (dates are displayed normally as "dd.mm.yyyy") but the calendar cannot use them because they are all in text format. I have tried reformatting the date columns in the DataList to the date format but this has no effect whatsoever on the dates that come from the userform.

    I therefore need the right VBA string - something that goes between the two lines


    Private Sub TextBox1_Change()
    
    End Sub


    in the two data TextBoxes in my userform.

    Can anybody help?

    Any suggestions would be greatly appreciated.
    Last edited by alansidman; 11-08-2013 at 09:24 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Date Format in userform textbox is different from excel worksheet?
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2013, 06:46 AM
  2. [SOLVED] Change textbox format to date
    By imran91 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2012, 04:01 AM
  3. Not able to change date format into proper excel date format
    By excel5111987 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2011, 08:19 AM
  4. Change Date Format to Text Format
    By lglover39 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-20-2007, 05:53 PM
  5. change date format into text format.
    By adsxvii in forum Excel General
    Replies: 1
    Last Post: 03-22-2007, 02:07 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