Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Applying pop up calendar to entire worksheet

Hi Klee

You can insert a calendar in every worksheet you want and also copy the same code in each worksheet.

If you make a copy of the sheet it will also copy the event code and the control


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Klee" wrote in message ...
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Applying pop up calendar to entire worksheet

Thanks Ron. I had actually tried that prior to posting but it didn't work.
Once I read you post and realized it should have worked, I ended up copying
the sheet into a new workbook then adding the calendar and coping the new
sheets. It worked great this time.

Thanks very much

"Ron de Bruin" wrote:

Hi Klee

You can insert a calendar in every worksheet you want and also copy the same code in each worksheet.

If you make a copy of the sheet it will also copy the event code and the control


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Klee" wrote in message ...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Applying pop up calendar to entire worksheet

On Jul 28, 1:36 pm, Klee wrote:
I posted this question already but I think I put it into the wrong area.

I have put a pop upcalendarinto 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 upcalendarwork 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 theCalendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


You may want to consider using a polished 3rd party solution. See
http://www.wincalendar.com/excel-calendar.html for a very useful Excel
pop-up calendar.
Sam

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
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 12:44 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"