#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Calandar

I have a popup calandar that all of a sudden doesn't show any dates. I can
click on a blank date block (knowing what date it is by its location on the
calandar) and it will put the correct date in the selected cell

I have not done any revisions to the workbook.

oldjay
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Calandar

More explaination - This is the code I am using

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("form!C47:C48"), 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



"Oldjay" wrote:

I have a popup calandar that all of a sudden doesn't show any dates. I can
click on a blank date block (knowing what date it is by its location on the
calandar) and it will put the correct date in the selected cell

I have not done any revisions to the workbook.

oldjay

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Calandar

Try to delete the object and insert a new one
(be sure that the name is also Calendar1)

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Oldjay" wrote in message ...
More explaination - This is the code I am using

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("form!C47:C48"), 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



"Oldjay" wrote:

I have a popup calandar that all of a sudden doesn't show any dates. I can
click on a blank date block (knowing what date it is by its location on the
calandar) and it will put the correct date in the selected cell

I have not done any revisions to the workbook.

oldjay



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default Calandar

I dont know how to delete an object

"Ron de Bruin" wrote:

Try to delete the object and insert a new one
(be sure that the name is also Calendar1)

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Oldjay" wrote in message ...
More explaination - This is the code I am using

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("form!C47:C48"), 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



"Oldjay" wrote:

I have a popup calandar that all of a sudden doesn't show any dates. I can
click on a blank date block (knowing what date it is by its location on the
calandar) and it will put the correct date in the selected cell

I have not done any revisions to the workbook.

oldjay




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Calandar

When you are in Edit mode (open the control toolbox toolbar and press the first button)
Select the control and press delete

Then insert a new one and see if this help


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Oldjay" wrote in message ...
I dont know how to delete an object

"Ron de Bruin" wrote:

Try to delete the object and insert a new one
(be sure that the name is also Calendar1)

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Oldjay" wrote in message ...
More explaination - This is the code I am using

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("form!C47:C48"), 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



"Oldjay" wrote:

I have a popup calandar that all of a sudden doesn't show any dates. I can
click on a blank date block (knowing what date it is by its location on the
calandar) and it will put the correct date in the selected cell

I have not done any revisions to the workbook.

oldjay






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a calandar chart Helixal Charts and Charting in Excel 1 January 26th 10 09:15 AM
Complex day of the month calandar Kai Excel Worksheet Functions 0 December 4th 09 08:14 PM
In excel, I want a drop down box to a calandar to choose dates Sioux Excel Discussion (Misc queries) 2 July 6th 07 11:45 PM
use of calandar function yarrakid Excel Discussion (Misc queries) 0 June 13th 06 06:42 PM
how can i put birthdays into the calandar from an list? martha binford wells Excel Discussion (Misc queries) 1 October 18th 05 08:06 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"