+ Reply to Thread
Results 1 to 4 of 4

2007 date picker 1900!

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    11

    2007 date picker 1900!

    Ok, so I have a LOT of dates to add to a number of cells in various worksheets. I'm creating a userform to do this, and It works so far... except when I don't want any dates.. a 'null' value... the date cells are ending up as January 1900! I've been working on this form for a while so a fresh set of eyes to tell me where I'm going wrong would be a big help. I know it's probably something simple, but I just can't seem to think my way out of it right now.

    Attachment 286451

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: 2007 date picker 1900!

    Try:
    =IF(ISNUMBER(E7),E7+365,"")
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    11

    Re: 2007 date picker 1900!

    Thanks for the response.
    That may work for the formulas, but the problem I'm having is between the userform values and what gets entered into each cell.
    Currently, the code goes along cell by cell in the row, and fills with the value from the appropriate control, regardless of what that value is.
    What I need to have happen is to cycle through the control values, and only enter the ones that are NOT null, because I'm pretty sure that the January 1/1900 issue is due to a null value in the date pickers. I'm just not sure how to do this. Again, any help is much appreciated.

  4. #4
    Registered User
    Join Date
    11-20-2013
    Location
    Alberta, Canada
    MS-Off Ver
    2007
    Posts
    11

    Re: 2007 date picker 1900!

    I fixed it.. sort of. Since the end user has 2010 anyway, I changed the date picker controls for text boxes, and now the form works completely. I've included a copy in case anyone else wants to see it, or if anyone has ideas for tweaking it. The workbook its on is a small sample. The real file has hundreds of employees across 12 different worksheets. Any ideas on making this work as fast as possible for the end user would be much appreciated.

    tickettemp1.xlsm

+ 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. Date Picker download for Excel 2007
    By Mark Hazelton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2013, 08:48 AM
  2. Macro for changing the date from 02-Jan-1900 to 01-Jan-1900
    By Lavanya Anandan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 07:08 AM
  3. VBA Excel 2007 Date Picker keeps uninstalling - Help?
    By danmarson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2013, 04:48 AM
  4. Use Calendar (Excel 2007) and the Date Picker (Excel 2010) in same project...
    By jpcsolutions in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2011, 01:52 AM
  5. Date Picker in Excel 2007
    By RJMooreII in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2010, 02:09 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