+ Reply to Thread
Results 1 to 5 of 5

Remove time from data and time picker

  1. #1
    Registered User
    Join Date
    11-09-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    26

    Remove time from data and time picker

    Hi Guys - I've managed to add the data and time picker to chosen cells in my spreadsheet.

    How can i choose the date only without the time also populating the same cell ??

    I dont need the time displayed - just the date in the cell.


    I look forward to your reply...


    Wayprof

  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,484

    Re: Remove time from data and time picker

    Use a Custom Format, or possibly just the standard Short Date Format.
    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


  3. #3
    Registered User
    Join Date
    11-09-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Remove time from data and time picker

    Still doesn’t work - any more ideas ???

  4. #4
    Registered User
    Join Date
    11-09-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Remove time from data and time picker

    I have this script to put the date and time in cell F5

    ------------------------------------------------

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)


    With Sheet1.DTPicker1
    .Height = 20
    .Width = 20
    If Not Intersect(Target, Range("F5")) Is Nothing Then
    .Visible = True
    .Top = Target.Top
    .Left = Target.Offset(0, 1).Left
    .LinkedCell = Target.Address
    Else
    .Visible = False
    End If
    End With

    End Sub

    ------------------------------------------------------------


    Is there an amendment I can make to remove the "time" element ?

  5. #5
    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,484

    Re: Remove time from data and time picker

    Well, the Date part of a Date and Time value will be the Integer part. However, I no longer have Excel 2003 so I cannot rest any solution.

+ 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. Format time picker in military time
    By rpcoates1956 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-31-2017, 11:23 AM
  2. Microsoft Data and Time Picker Control 6.0 (SP6) not listed
    By aviko150 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2016, 12:14 PM
  3. Date and time picker
    By shadowplay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2014, 12:17 PM
  4. Pop Up Time Only Picker
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2014, 08:52 PM
  5. Time picker
    By impresxy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2013, 11:21 AM
  6. Time Picker
    By TheBOSS in forum Excel General
    Replies: 3
    Last Post: 11-26-2009, 01:20 AM
  7. Remove time from a date and time field? Format removes the displa.
    By oaoboc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2005, 03:35 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