LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default calander control and copy command problem

Hello:
I have a macro to invoke the calander control when a particular is active or
selected. When I select the cell and the calander control appears I find the
date I want, double click and that date drops in the active cell. the problem
I found is when I inserted the calander control from Insert object pull
down my paste function is greyed out. When I deleted the calander control my
paste function became available.
Here is the code that I have in my spreadsheet:

Private Sub Calendar1_DblClick()
ActiveCell.NumberFormat = "mm/dd/yy"
ActiveCell = Calendar1.Value
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("A1:A100"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
Else: Calendar1.Visible = False
End If
End Sub

any help as to why my paste function is unavailabe (greyed out) when I
insert the calander control?
Thank you
--
He4Giv (Dick)
 
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
Calander Control 9.0 Mike Rogers Excel Discussion (Misc queries) 2 December 14th 06 03:35 PM
how to insert calander control in excel? Michelle Excel Worksheet Functions 0 January 29th 06 11:16 PM
how to add calander control in excel cell ? Paresh[_2_] Excel Programming 1 April 19th 05 12:02 PM
Set Focus Problem for textbox control on multipage control ExcelDeveloperSPR Excel Programming 1 July 16th 04 08:54 PM
Calander Control A Jones Excel Programming 1 May 24th 04 11:22 PM


All times are GMT +1. The time now is 06:22 AM.

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"