Closed Thread
Results 1 to 2 of 2

Popup Calendar Problem

  1. #1
    Registered User
    Join Date
    03-20-2011
    Location
    toronto canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Popup Calendar Problem

    This function to display the calendar requires that the user hit ESC before a date can be selected. Here is the code:

    Sub PopUpCalEntry(cCell As Range)
    Dim newDate As String
    Load frmCal
    newDate = Format(Date, "yyyy-mm-dd")
    frmCal.Calendar1.Value = newDate
    frmCal.Show
    End Sub

    It is called as follows:

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Intersect(ActiveCell, [I2,I4,L3,L36,L37]) Is Nothing Then
    PopUpCalEntry ActiveCell
    End If
    End Sub

    Anyone know how to avoid the unnecessary use of the ESC?
    Originally adapted from

    http://excel.bigresource.com/Track/excel-zi6Mrcjn/

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Popup Calendar Problem

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

Closed Thread

Thread Information

Users Browsing this Thread

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

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