+ Reply to Thread
Results 1 to 4 of 4

Popup Calendar gets smaller every use

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Talking Popup Calendar gets smaller every use

    Hello.

    For the attached, I change the date on Sheet 5a using the popup calendar, then I save the workbook.
    I keep doing this over and over (open-change date-save-close workbook).
    With every open/use, the calendar gets smaller until the dates become unreadable.
    The other sheet has the calendar the right size.
    Any idea what is going on to cause this?

    Here is a link to someone else who noticed the same problem: http://www.access-programmers.co.uk/...d.php?t=172989

    I appreciate any help!

    VR/Lost
    Attached Files Attached Files
    Last edited by leaning; 01-04-2011 at 06:53 PM. Reason: solved!

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Popup Calendar gets smaller every use

    You could change your code adding the lines shown in bold:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        If Target.Cells.Count > 1 Then Exit Sub
        If Not Application.Intersect(Range("c2,c17,c21,c23,c26,c29,c32,c35,c38"), Target) Is Nothing Then
            Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
            Calendar1.Top = Target.Top + Target.Height
            Calendar1.Width = 190
            Calendar1.Height = 115
            Calendar1.Visible = True
            If Not IsDate(Target.Value) Then
                Calendar1.Value = Date
            Else
                Calendar1.Value = Target.Value
            End If
        ElseIf Calendar1.Visible Then Calendar1.Visible = False
        End If
    End Sub
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Talking Re: Popup Calendar gets smaller every use

    Antoka05,

    Worked like a charm! Thanks!

    VR/Lost

  4. #4
    Registered User
    Join Date
    06-07-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Popup Calendar gets smaller every use

    I can't get this to work for the life of me! lol

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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