PC Review


Reply
Thread Tools Rate Thread

Calendar Popup

 
 
NFL
Guest
Posts: n/a
 
      5th May 2009
I have a calendar object referenced to cell E1. I also have the window
freeze panes locked at row 8. Is there a way I can have the calendar popup
appear below row 8? The problem I'm facing is that the last 2 weeks of any
given month can not be selected because the object crosses below row 8.

Thank you for your help
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      5th May 2009
By calendar object what exactly are you referring to. I am going to assume
the Microsoft Month View Control from the Control toolbox. Have you tried
switching to a date time picker control? It does not seem to have an issue
with freezing.
--
HTH...

Jim Thomlinson


"NFL" wrote:

> I have a calendar object referenced to cell E1. I also have the window
> freeze panes locked at row 8. Is there a way I can have the calendar popup
> appear below row 8? The problem I'm facing is that the last 2 weeks of any
> given month can not be selected because the object crosses below row 8.
>
> Thank you for your help

 
Reply With Quote
 
NFL
Guest
Posts: n/a
 
      5th May 2009
It appears the same, but I went to the 'Insert', 'Object', from the menu bar
and picked the calendar from there. Are the codes written different for the
date time picker?

Thank you,

"Jim Thomlinson" wrote:

> By calendar object what exactly are you referring to. I am going to assume
> the Microsoft Month View Control from the Control toolbox. Have you tried
> switching to a date time picker control? It does not seem to have an issue
> with freezing.
> --
> HTH...
>
> Jim Thomlinson
>
>
> "NFL" wrote:
>
> > I have a calendar object referenced to cell E1. I also have the window
> > freeze panes locked at row 8. Is there a way I can have the calendar popup
> > appear below row 8? The problem I'm facing is that the last 2 weeks of any
> > given month can not be selected because the object crosses below row 8.
> >
> > Thank you for your help

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      5th May 2009
You can change the position of the calendar in the code if you want
Show me the code that you use now

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"NFL" <(E-Mail Removed)> wrote in message news:74FB8517-D1D6-455D-BE58-(E-Mail Removed)...
> It appears the same, but I went to the 'Insert', 'Object', from the menu bar
> and picked the calendar from there. Are the codes written different for the
> date time picker?
>
> Thank you,
>
> "Jim Thomlinson" wrote:
>
>> By calendar object what exactly are you referring to. I am going to assume
>> the Microsoft Month View Control from the Control toolbox. Have you tried
>> switching to a date time picker control? It does not seem to have an issue
>> with freezing.
>> --
>> HTH...
>>
>> Jim Thomlinson
>>
>>
>> "NFL" wrote:
>>
>> > I have a calendar object referenced to cell E1. I also have the window
>> > freeze panes locked at row 8. Is there a way I can have the calendar popup
>> > appear below row 8? The problem I'm facing is that the last 2 weeks of any
>> > given month can not be selected because the object crosses below row 8.
>> >
>> > Thank you for your help

 
Reply With Quote
 
NFL
Guest
Posts: n/a
 
      6th May 2009
This code works only on Cell E1. Every time I click on that cell, the
calendar will appear directly below Cell E1. Is there a way to have the
calendar appear below row 8?

Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
'ActiveCell.NumberFormat = "dddd, mmmm dd, yyyy"
ActiveCell.Select
Calendar1.Visible = False
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Application.Intersect(Range("E1"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


"Ron de Bruin" wrote:

> You can change the position of the calendar in the code if you want
> Show me the code that you use now
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
>
>
> "NFL" <(E-Mail Removed)> wrote in message news:74FB8517-D1D6-455D-BE58-(E-Mail Removed)...
> > It appears the same, but I went to the 'Insert', 'Object', from the menu bar
> > and picked the calendar from there. Are the codes written different for the
> > date time picker?
> >
> > Thank you,
> >
> > "Jim Thomlinson" wrote:
> >
> >> By calendar object what exactly are you referring to. I am going to assume
> >> the Microsoft Month View Control from the Control toolbox. Have you tried
> >> switching to a date time picker control? It does not seem to have an issue
> >> with freezing.
> >> --
> >> HTH...
> >>
> >> Jim Thomlinson
> >>
> >>
> >> "NFL" wrote:
> >>
> >> > I have a calendar object referenced to cell E1. I also have the window
> >> > freeze panes locked at row 8. Is there a way I can have the calendar popup
> >> > appear below row 8? The problem I'm facing is that the last 2 weeks of any
> >> > given month can not be selected because the object crosses below row 8.
> >> >
> >> > Thank you for your help

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      6th May 2009
Hi NFL

Use this to display it below row 8

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

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Application.Intersect(Range("E1"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
Calendar1.Top = Target.Offset(7, 0).Top + Target.Height
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


You can use it for more cells also

Note: You can use this if your range is not one area
If Not Application.Intersect(Range("A1:A20,C1,E1"), Target) Is Nothing Then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"NFL" <(E-Mail Removed)> wrote in message news:0447826F-4EE6-451E-9741-(E-Mail Removed)...
> This code works only on Cell E1. Every time I click on that cell, the
> calendar will appear directly below Cell E1. Is there a way to have the
> calendar appear below row 8?
>
> Private Sub Calendar1_Click()
> ActiveCell.Value = CDbl(Calendar1.Value)
> 'ActiveCell.NumberFormat = "dddd, mmmm dd, yyyy"
> ActiveCell.Select
> Calendar1.Visible = False
> End Sub
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> If Target.Cells.Count > 1 Then Exit Sub
> If Not Application.Intersect(Range("E1"), Target) Is Nothing Then
> Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
> Calendar1.Top = Target.Top + Target.Height
> Calendar1.Visible = True
> ' select Today's date in the Calendar
> Calendar1.Value = Date
> ElseIf Calendar1.Visible Then Calendar1.Visible = False
> End If
> End Sub
>
>
> "Ron de Bruin" wrote:
>
>> You can change the position of the calendar in the code if you want
>> Show me the code that you use now
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>>
>>
>> "NFL" <(E-Mail Removed)> wrote in message news:74FB8517-D1D6-455D-BE58-(E-Mail Removed)...
>> > It appears the same, but I went to the 'Insert', 'Object', from the menu bar
>> > and picked the calendar from there. Are the codes written different for the
>> > date time picker?
>> >
>> > Thank you,
>> >
>> > "Jim Thomlinson" wrote:
>> >
>> >> By calendar object what exactly are you referring to. I am going to assume
>> >> the Microsoft Month View Control from the Control toolbox. Have you tried
>> >> switching to a date time picker control? It does not seem to have an issue
>> >> with freezing.
>> >> --
>> >> HTH...
>> >>
>> >> Jim Thomlinson
>> >>
>> >>
>> >> "NFL" wrote:
>> >>
>> >> > I have a calendar object referenced to cell E1. I also have the window
>> >> > freeze panes locked at row 8. Is there a way I can have the calendar popup
>> >> > appear below row 8? The problem I'm facing is that the last 2 weeks of any
>> >> > given month can not be selected because the object crosses below row 8.
>> >> >
>> >> > Thank you for your help

>>

 
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
calendar popup =?Utf-8?B?QWFyb24=?= Microsoft Excel Misc 1 11th May 2006 02:52 PM
calendar popup =?Utf-8?B?ZnJhbmtsaW5idWtvc2tp?= Microsoft Access Forms 4 26th Feb 2006 01:46 PM
Allen Browne Popup Calendar - Calendar Button Problem =?Utf-8?B?Sm9hbk9D?= Microsoft Access 6 7th Feb 2006 12:48 AM
Popup calendar =?Utf-8?B?QWxp?= Microsoft ASP .NET 1 27th Feb 2005 02:03 PM
Popup Calendar Alessandro Microsoft ASP .NET 0 7th Apr 2004 10:02 AM


Features
 

Advertising
 

Newsgroups
 


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