Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calendar Object in Excel

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Calendar Object in Excel

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Calendar Object in Excel

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
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
I want to link a cell in excel to calendar object? Stapes Excel Worksheet Functions 0 March 28th 07 12:06 AM
Object Calendar 11.0 Pat Excel Discussion (Misc queries) 1 January 9th 07 10:10 PM
Worksheet object (Calendar) Mike Rogers Excel Discussion (Misc queries) 2 May 19th 06 04:22 PM
use of calendar object? CathyZ Excel Discussion (Misc queries) 1 May 4th 06 07:14 PM
Calendar - change of a size of this object Drahos Excel Worksheet Functions 1 February 14th 06 06:01 PM


All times are GMT +1. The time now is 07:13 PM.

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"