+ Reply to Thread
Results 1 to 4 of 4

Date Picker Visibility

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    69

    Date Picker Visibility

    Hi,

    I currently have a DatePicker function in my excel spreadsheet and was wondering if there was a way for the calendar to show only when the cell is selected, and to disappear when the cell is not selected anymore?

    Ideally would want to be able to:
    1) Click cell A1
    2) Select the date from DatePicker
    3) Date selected will fill cell A1
    4) DatePicker disappears when I click somewhere else.

    Such that, if I wanted to change the date again, I could just click Cell A1 and step 1 would repeat again.

    I was able to get the datepicker to disappear after selecting the date using this code:

    Private Sub DTPicker21_CloseUp()
    DTPicker21.Visible = False
    End Sub

    But when I click Cell A1 again, I could not get the DatePicker to show up again. Any help would be great.

    Thanks!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Date Picker Visibility

    Put this code in the module for the worksheet containing the control
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Date Picker Visibility

    Thanks for your help!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Date Picker Visibility

    You're welcome! Thanks for the rep, and thanks for marking your thread Solved!

+ 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. Replies: 7
    Last Post: 12-08-2013, 06:11 PM
  2. Date Picker Date Format issue
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2012, 06:43 PM
  3. Date Picker won't select current date: Userform
    By valkok in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2011, 06:09 PM
  4. Date Picker Control will not display Current Date
    By SP Brian in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-04-2011, 01:33 PM
  5. Date picker:Date Selector Form.
    By mixedup in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2008, 03:03 AM

Tags for this Thread

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