Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the following code to bring up the Calendar control. When I
converted the excel workbook from XP version to 2007 version on my home computer it worked fine, but when I open it on my office computer I get a message saying "Object required". When I open the older version on my office computer, the Calendar code works OK. Can you please also advise what code I need to control the size of the Calendar? Rob Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Not Application.Intersect(Range("H2"), Target) Is Nothing Then Calendar3.Left = Target.Left + Target.Width * 2 - Calendar3.Width Calendar3.Top = Target.Top + Target.Height * 7.5 Calendar3.Visible = True ' select Today's date in the Calendar Calendar3.Value = Date ElseIf Calendar3.Visible Then Calendar3.Visible = False End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filter isn't working with a VBA Code | Excel Worksheet Functions | |||
How do I make a working calendar | Excel Worksheet Functions | |||
how do I adjust working calendar (6 day work week) in excel that . | Excel Worksheet Functions | |||
Code not working and can't see why | Excel Discussion (Misc queries) | |||
Often-Used Code not working in a new Workbook | Excel Discussion (Misc queries) |