Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Calender Activex Help

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Calender Activex Help

On Wed, 19 Mar 2008 17:24:09 -0700, Joel
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
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
pop up calender PT 2 Norm Excel Discussion (Misc queries) 1 April 28th 10 07:35 PM
pop up calender samy Excel Discussion (Misc queries) 0 June 25th 08 12:59 PM
pop up calender pezcore Excel Discussion (Misc queries) 2 October 18th 07 02:15 PM
publish activeX combobox and other activeX control irene c Excel Programming 0 March 19th 07 07:19 AM
CALENDER smickParisTX Excel Discussion (Misc queries) 0 January 19th 06 06:19 PM


All times are GMT +1. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"