PC Review


Reply
Thread Tools Rate Thread

Calender Activex Help

 
 
Joel
Guest
Posts: n/a
 
      20th Mar 2008
I have drawn a calender on my excel spreadsheet using activeX.

I have a sheet for each month, what I am trying to achive is draw a calender
on each of the sheets, lets say it is the January sheet that I am looking at.

I only want it to show January on the calender and not be able to change
that date so the January sheet would show January and the February sheet
would show February.

THanks in Advance Joel
--
N/A
 
Reply With Quote
 
 
 
 
Dick Kusleika
Guest
Posts: n/a
 
      21st Mar 2008
On Wed, 19 Mar 2008 17:24:09 -0700, Joel <(E-Mail Removed)>
wrote:

>I only want it to show January on the calender and not be able to change
>that date so the January sheet would show January and the February sheet
>would show February.


Right click on the calendar and choose Properties. Change ShowDateSelectors
to False to get rid of the dropdown boxes. Then right click on the calendar
and select View Code. You'll need the following code to prevent the user
from clicking on the greyed out numbers and switching months.

Private Sub Calendar1_BeforeUpdate(Cancel As Integer)

If Sheet1.Calendar1.Month <> 1 Then
Cancel = True
End If

End Sub
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
 
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
Re: How To Input Value into ActiveX Calender ? Mike Painter Microsoft Access Form Coding 1 29th Nov 2008 03:28 AM
ActiveX calender help Joel Microsoft Excel Programming 0 20th Mar 2008 10:27 AM
ActiveX calender =?Utf-8?B?UGF0cmljaw==?= Microsoft Access 3 3rd Feb 2005 10:25 PM
ActiveX Calender James New Microsoft Access Getting Started 1 31st Jan 2004 01:37 AM
Go to records using the ActiveX Calender Christian Davidsson Microsoft Access Form Coding 0 2nd Aug 2003 09:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 PM.