PC Review


Reply
Thread Tools Rate Thread

Calendar Pop up issue

 
 
=?Utf-8?B?R2F2MTIz?=
Guest
Posts: n/a
 
      12th Apr 2007
Hi,

I'm using excel 2003.

I have created a calendar pop up by using the code from Ron de Bruin's site
http://www.rondebruin.nl/calendar.htm

The pop was working fine but now when I click on the cell's where the
control is located the calendar doesn't appear.

Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "dd/mm/yyyy"
ActiveCell.Select
If Calendar1.Value Then
Calendar1.Visible = False
End If

End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Application.Intersect(Range("J19:J21,J23:J29"), Target) Is
Nothing Then
Calendar1.Left = Target.Left + Target.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If


End Sub

I have swapped PC's and had to install the Calendar Control as described on
http://www.fontstuff.com/vba/vbatut07.htm.

I created the user form from scratch on the new machine but the control
still isn't working.

Any ideas on what the issue might be would be appreciated.

Thanks in advance,

Gav123

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      12th Apr 2007
Hi Gav123,

The code works for me without any problem.

Are you sure that Events have not been disabled?

To eliminate this possibility, try first:

'=============>>
Public Sub Tester()
Application.EnableEvents = True
End Sub
'<<=============

Otherwise, are you sure that the code has been placed
in the Worksheet's code module rather than in a standard
module?

I note, however, your comment:

> I created the user form from scratch on the new machine but the control
> still isn't working.


What is the relevance of the Userform to this problem?


---
Regards,
Norman



"Gav123" <(E-Mail Removed)> wrote in message
news:262C4AB8-463B-49E6-890D-(E-Mail Removed)...
> Hi,
>
> I'm using excel 2003.
>
> I have created a calendar pop up by using the code from Ron de Bruin's
> site
> http://www.rondebruin.nl/calendar.htm
>
> The pop was working fine but now when I click on the cell's where the
> control is located the calendar doesn't appear.
>
> Private Sub Calendar1_Click()
> ActiveCell.Value = CDbl(Calendar1.Value)
> ActiveCell.NumberFormat = "dd/mm/yyyy"
> ActiveCell.Select
> If Calendar1.Value Then
> Calendar1.Visible = False
> End If
>
> End Sub
> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> If Target.Cells.Count > 1 Then Exit Sub
> If Not Application.Intersect(Range("J19:J21,J23:J29"), Target) Is
> Nothing Then
> Calendar1.Left = Target.Left + Target.Width
> Calendar1.Top = Target.Top + Target.Height
> Calendar1.Visible = True
> Calendar1.Value = Date
> ElseIf Calendar1.Visible Then Calendar1.Visible = False
> End If
>
>
> End Sub
>
> I have swapped PC's and had to install the Calendar Control as described
> on
> http://www.fontstuff.com/vba/vbatut07.htm.
>
> I created the user form from scratch on the new machine but the control
> still isn't working.
>
> Any ideas on what the issue might be would be appreciated.
>
> Thanks in advance,
>
> Gav123
>



 
Reply With Quote
 
=?Utf-8?B?R2F2MTIz?=
Guest
Posts: n/a
 
      12th Apr 2007
Hi Norman,

That was it.. my brain must have switched off..

I just thought I would do the userform from scratch in case I was missing
something..it's just the way my mind works...

Anyhow thanks for your help.

Gav

"Norman Jones" wrote:

> Hi Gav123,
>
> The code works for me without any problem.
>
> Are you sure that Events have not been disabled?
>
> To eliminate this possibility, try first:
>
> '=============>>
> Public Sub Tester()
> Application.EnableEvents = True
> End Sub
> '<<=============
>
> Otherwise, are you sure that the code has been placed
> in the Worksheet's code module rather than in a standard
> module?
>
> I note, however, your comment:
>
> > I created the user form from scratch on the new machine but the control
> > still isn't working.

>
> What is the relevance of the Userform to this problem?
>
>
> ---
> Regards,
> Norman
>
>
>
> "Gav123" <(E-Mail Removed)> wrote in message
> news:262C4AB8-463B-49E6-890D-(E-Mail Removed)...
> > Hi,
> >
> > I'm using excel 2003.
> >
> > I have created a calendar pop up by using the code from Ron de Bruin's
> > site
> > http://www.rondebruin.nl/calendar.htm
> >
> > The pop was working fine but now when I click on the cell's where the
> > control is located the calendar doesn't appear.
> >
> > Private Sub Calendar1_Click()
> > ActiveCell.Value = CDbl(Calendar1.Value)
> > ActiveCell.NumberFormat = "dd/mm/yyyy"
> > ActiveCell.Select
> > If Calendar1.Value Then
> > Calendar1.Visible = False
> > End If
> >
> > End Sub
> > Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> > If Target.Cells.Count > 1 Then Exit Sub
> > If Not Application.Intersect(Range("J19:J21,J23:J29"), Target) Is
> > Nothing Then
> > Calendar1.Left = Target.Left + Target.Width
> > Calendar1.Top = Target.Top + Target.Height
> > Calendar1.Visible = True
> > Calendar1.Value = Date
> > ElseIf Calendar1.Visible Then Calendar1.Visible = False
> > End If
> >
> >
> > End Sub
> >
> > I have swapped PC's and had to install the Calendar Control as described
> > on
> > http://www.fontstuff.com/vba/vbatut07.htm.
> >
> > I created the user form from scratch on the new machine but the control
> > still isn't working.
> >
> > Any ideas on what the issue might be would be appreciated.
> >
> > Thanks in advance,
> >
> > Gav123
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007 Calendar Issue (When toggling between e-mail and calendar) SP Barham Microsoft Outlook Calendar 1 18th Oct 2008 03:31 AM
Re: Outlook Calendar issue - Calendar Invitation to 1 user goes to EVE Judy Gleeson \(MVP Outlook\) Microsoft Outlook Calendar 0 13th Dec 2006 12:16 AM
Outlook Calendar issue - Calendar Invitation to one user goes to EVERYONE in my group... westend.wc1@gmail.com Microsoft Outlook 0 12th Dec 2006 12:15 PM
calendar issue fxkeough@hotmail.com Microsoft Outlook Calendar 0 30th May 2006 04:37 AM
Calendar issue with Exchange and Form issue Mitch Microsoft Outlook Calendar 3 13th May 2004 01:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 PM.