Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have put a calendar pop up in a cell after looking how on
http://www.rondebruin.nl/calendar.htm It all works for me and most others, but some people are getting a vb error not just on this cell but all cells. The error is Compile Error" "Can't find project or library". It has been sugested that the error is due to the Calendar control being a part of Access ? Is this true ? If so is there a way around this as I can't ask people to install Access? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Paul
Yes that is true See the link I have on my site to the page with the useform example you can download the control there if you want -- Regards Ron de Bruin http://www.rondebruin.nl "Paul Dennis" wrote in message ... I have put a calendar pop up in a cell after looking how on http://www.rondebruin.nl/calendar.htm It all works for me and most others, but some people are getting a vb error not just on this cell but all cells. The error is Compile Error" "Can't find project or library". It has been sugested that the error is due to the Calendar control being a part of Access ? Is this true ? If so is there a way around this as I can't ask people to install Access? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I replaced the code but it didn't make any difference
from: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$I$30" Then 'Change this Calendar1.Visible = True Calendar1.Value = Date Else Calendar1.Visible = False End If End Sub to: Private Sub Calendar1_Click() ActiveCell.Value = CDbl(Calendar1.Value) ActiveCell.NumberFormat = "dd/mm/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("I30"), 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: Hi Paul Yes that is true See the link I have on my site to the page with the useform example you can download the control there if you want -- Regards Ron de Bruin http://www.rondebruin.nl "Paul Dennis" wrote in message ... I have put a calendar pop up in a cell after looking how on http://www.rondebruin.nl/calendar.htm It all works for me and most others, but some people are getting a vb error not just on this cell but all cells. The error is Compile Error" "Can't find project or library". It has been sugested that the error is due to the Calendar control being a part of Access ? Is this true ? If so is there a way around this as I can't ask people to install Access? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
???
It has been sugested that the error is due to the Calendar control being a part of Access ? Is this true ? If so is there a way around this as I can't ask people to install Access? See http://www.fontstuff.com/mailbag/qvba01.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Paul Dennis" wrote in message ... I replaced the code but it didn't make any difference from: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$I$30" Then 'Change this Calendar1.Visible = True Calendar1.Value = Date Else Calendar1.Visible = False End If End Sub to: Private Sub Calendar1_Click() ActiveCell.Value = CDbl(Calendar1.Value) ActiveCell.NumberFormat = "dd/mm/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("I30"), 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: Hi Paul Yes that is true See the link I have on my site to the page with the useform example you can download the control there if you want -- Regards Ron de Bruin http://www.rondebruin.nl "Paul Dennis" wrote in message ... I have put a calendar pop up in a cell after looking how on http://www.rondebruin.nl/calendar.htm It all works for me and most others, but some people are getting a vb error not just on this cell but all cells. The error is Compile Error" "Can't find project or library". It has been sugested that the error is due to the Calendar control being a part of Access ? Is this true ? If so is there a way around this as I can't ask people to install Access? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a schedule from a list of dates ? | Charts and Charting in Excel | |||
how do i pick A date for a cell from a drop down calendar? | Excel Discussion (Misc queries) | |||
Mileage Claim Formula | New Users to Excel | |||
Set a cell to have a pop-up calendar for date selection in Excel? | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |