PC Review


Reply
Thread Tools Rate Thread

Calendar Control (Embeded) - Populate thru a command button

 
 
Matts
Guest
Posts: n/a
 
      5th Sep 2008
I have inserted a 'embedded' calendar control by going into 'more controls'
& choosing Calendar control 9.0.
It works fine & I've even got it linked to a cell to show the dates chosen.

I would want this Calendar popping up only when a command button is clicked.
It just doesnt seem to work as there's no name for this calendar.

I'm quite familiar with how this works with user forms but not with this
embedded image. The name of the whole calendar appears as
=EMBED("MSCAL.Calendar.7","")

I usually use (formxxxx.show) to opening a user form, but this doesn’t
work in this situation with an embedded image.

Appreciate any advice

Thx, Matt
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      5th Sep 2008
Try something like

Worksheets("Sheet1").OLEObjects("Calendar1").Visible = True
' OR
Worksheets("Sheet1").OLEObjects("Calendar1").Visible = False


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Matts" <(E-Mail Removed)> wrote in message
news:294E6A15-D5AD-45C3-9C55-(E-Mail Removed)...
>I have inserted a 'embedded' calendar control by going into 'more
>controls'
> & choosing Calendar control 9.0.
> It works fine & I've even got it linked to a cell to show the dates
> chosen.
>
> I would want this Calendar popping up only when a command button is
> clicked.
> It just doesnt seem to work as there's no name for this calendar.
>
> I'm quite familiar with how this works with user forms but not with this
> embedded image. The name of the whole calendar appears as
> =EMBED("MSCAL.Calendar.7","")
>
> I usually use (formxxxx.show) to opening a user form, but this doesn’t
> work in this situation with an embedded image.
>
> Appreciate any advice
>
> Thx, Matt


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button to populate a field =?Utf-8?B?Y2JheWFyZG8=?= Microsoft Access Forms 6 5th Oct 2007 05:56 PM
Use command button to populate subform Tab slagg7575@hotmail.com Microsoft Access Forms 2 27th Sep 2006 05:26 PM
Populate Textbox with Command Button =?Utf-8?B?RHdpZ2h0?= Microsoft Access Form Coding 3 13th Sep 2006 10:35 PM
How do I code a command button to open a calendar control on form =?Utf-8?B?SmFtZXMgSm9obnNvbg==?= Microsoft Access Form Coding 1 30th Jun 2005 10:15 AM
populate field using command button? =?Utf-8?B?bWlrZTI3?= Microsoft Access 0 24th May 2004 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.