Can't Click on Calendar Form

Atroxell

Active Member
Joined
Apr 18, 2007
Messages
422
Hi all,

I have recently upgraded to Excel 2010 and discovered an issue.

I have a macro that now uses the Microsoft Calendar Control 8.0. The Reference is checked and when I click in either column D or E the following code is fired:

Code:
Option Explicit
Dim temp As String
 
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
       If Application.CutCopyMode > 0 Then Exit Sub
 
        If Not Intersect(Target, Range("D:E")) Is Nothing Then
 
                With Calendar1
 
                        .Height = 150
                        .Width = 200
 
                        .Visible = True
 
                        .Left = Target.Left
 
                        .Top = Target.Offset(1).Top
 
                        temp = Target.Address
 
                End With
        Else
                temp = Target.Address
                With Calendar1
                    .Visible = False
                End With
        End If
 
End Sub

^^^​
This works great. The calendar appears and looks just like I want it, where I want it.

But I cannot click on the calendar to select a date. No response from the following code:

Code:
Private Sub Calendar1_Click()
        ' A date has been selected, so with the calendar
        With Calendar1
                'Place the selected value in the correct Range.
                Range(temp) = .Value
                ' Then hide the calendar.
                .Visible = False
        End With
End Sub

I tried putting a stop in the Calendar1_Click, but it never fires.

Someone have any insight? I have not changed a thing except versions.

Could there be an issue with the reference version? I built this thing so long ago I do not remember the MS Calendar Control version I orignally used, but it was XP.

TIA
Al
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Andrew Poulsom recently posted a reply regarding this, Evidently Excel 2010 does not supports the "Calendar Control".
 
Upvote 0
Mick,

Thanks for responding.

I guess I missed that post. I searched but did not find it. Strange that the MS Calendar Control would be in the references if it is not supported.

I guess it's back to manual entry for me...

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top