LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Applying pop up calendar to entire worksheet

I posted this question already but I think I put it into the wrong area.

I have put a pop up calendar into a spreadsheet that is being used by
several people at my office. I now need to add many new pages and I wondered
if anyone can tell me how to make the pop up calendar work in the same cells
in every worksheet in the workbook. I used the code from Ron's website as
follows:

Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/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("I6:I600"), 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


 
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
applying rounding formula to entire worksheet mateo Excel Worksheet Functions 17 May 15th 23 07:44 PM
Applying formula to an entire column Stephan Excel Discussion (Misc queries) 1 October 2nd 06 03:36 AM
Format entire column with Calendar activex control? chantal0123 Excel Discussion (Misc queries) 3 June 2nd 06 08:51 PM
Applying a formula to an entire column Audrey Excel Discussion (Misc queries) 3 April 20th 06 07:26 PM
Worksheet Changes and applying code Nigel Bennett Excel Worksheet Functions 1 March 13th 05 06:49 PM


All times are GMT +1. The time now is 07:12 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"