Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I was trying to insert a Calendar object in Excel. click on a button and a
calendar opens. Select the date and that date is inserted in the active cell. found an example on the net : calendar.xls. But it works erratically. Tried with changing macro security, including the right Addin. Also added the activex control. No. But the problem persists. The moot question is: if I do not use the example on the net and try inserting that on my own: on VBA editor insert userform... and then cannot find the control... please help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Under Insert - Object, you can insert a calendar object. Next, right click on
the sheet tab, view code. From the first dropdown, change this to your calendar. Make sure second dropdown is on 'Click". Then, inside the Macro it creates for you, write have a range return the value. Example: Private Sub Calendar1_Click() Range("A1").Value = Calendar1.Value End Sub 'Now, create another macro like this: Sub ShowCalendar() Calendar1.Visible = Not (Calendar1.Visible) End Sub Create your button with assigned macro "ShowCalendar" to toggle the calendar display on/off. For ease of use, I'd recommend placing the button & calendar in an area of your worksheet that will always be visible. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Calendar Object in Excel" wrote: I was trying to insert a Calendar object in Excel. click on a button and a calendar opens. Select the date and that date is inserted in the active cell. found an example on the net : calendar.xls. But it works erratically. Tried with changing macro security, including the right Addin. Also added the activex control. No. But the problem persists. The moot question is: if I do not use the example on the net and try inserting that on my own: on VBA editor insert userform... and then cannot find the control... please help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
I've got one,that work's differently if you're interested. You select the date first, a second popup will ask for the cell location.It's confusing at first if you've use the other one, but you adapt quickly. What 's really different is that it will stay open, you can move it around and you can enter multiple date on different sheets if you like. to close you press a button on the calendar. Post back if you want it. HTH John "Calendar Object in Excel" wrote in message ... I was trying to insert a Calendar object in Excel. click on a button and a calendar opens. Select the date and that date is inserted in the active cell. found an example on the net : calendar.xls. But it works erratically. Tried with changing macro security, including the right Addin. Also added the activex control. No. But the problem persists. The moot question is: if I do not use the example on the net and try inserting that on my own: on VBA editor insert userform... and then cannot find the control... please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I want to link a cell in excel to calendar object? | Excel Worksheet Functions | |||
Object Calendar 11.0 | Excel Discussion (Misc queries) | |||
Worksheet object (Calendar) | Excel Discussion (Misc queries) | |||
use of calendar object? | Excel Discussion (Misc queries) | |||
Calendar - change of a size of this object | Excel Worksheet Functions |