Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Calendar Control - Display Issue

[Excel2000-WIn98SE and Excel2002SP2-Win2000]

I am having a display quirk with a template using the following code
(credit to Ron De Bruin) in that the Calendar Control 8 is very slow to
hide once the cell is selected (it displays very quickly). I have tested
different video resolutions and video drivers from 5 of our ~800
computers to no avail).

If this is a Excel issue, given that I only need three cells with a
specific date format (for calculations and rate formats), one option
would be to duplicate the macro 3 times and paste each value
independently from a macro button. I would appreciate any help on the
code to paste the value in the cell as I have not been successful.

Option Explicit
Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
' ActiveCell.NumberFormat = "dd-mmmm-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("AN6,AT6"), 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
Else: Calendar1.Visible = False
End If
End Sub

Thanks,
KC
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
need to display the excel atcive control calendar to enter dates Rich analyst Excel Discussion (Misc queries) 2 July 8th 08 09:59 PM
Using Calendar control to display dates Ronio Excel Discussion (Misc queries) 3 May 1st 08 04:53 PM
Calendar Control in Excel 2000 can't display date in Excel 2003? Lewis Excel Discussion (Misc queries) 0 April 21st 06 05:07 PM
Calendar issue cjtj4700 Excel Discussion (Misc queries) 2 January 6th 06 08:21 PM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM


All times are GMT +1. The time now is 03:02 AM.

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

About Us

"It's about Microsoft Excel"