#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Calendar control

I have a workbook with different sheets each sheet has its own calendar in
Ce11 A1:A2500

I set the calendar up and copy my sub into VBA and it works fine but after i
exit the workbook then go back in the calendars are all different sizes some
you cant even see tha dates.

is there a way I can prevent this from happening so they all saty the same
size and readable

Cheers in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Calendar control

You really have 2500 separate calendar controls on each sheet?

Why not have just one control which you call out for the cell you select on
any sheet?

Ron de Bruin shows you how at this site. You will have to edit the range
upon which it operates. Currently set at A1:A20

http://www.rondebruin.nl/calendar.htm

To have the code for all worksheet do not place the
worksheet_selectionchange code in each sheet.

Place it in Thisworkbook module and change the event type.

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)


Gord Dibben MS Excel MVP

On Fri, 25 Sep 2009 04:46:01 -0700, cufc1210
wrote:

I have a workbook with different sheets each sheet has its own calendar in
Ce11 A1:A2500

I set the calendar up and copy my sub into VBA and it works fine but after i
exit the workbook then go back in the calendars are all different sizes some
you cant even see tha dates.

is there a way I can prevent this from happening so they all saty the same
size and readable

Cheers in advance


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Calendar control

Sorry Gordon

I just realised that i didnt word that very well, i do only have one
calender control per sheet i meant when i click on cells A1:A2500 the
calensdar appears thanks for the help anyways

"Gord Dibben" wrote:

You really have 2500 separate calendar controls on each sheet?

Why not have just one control which you call out for the cell you select on
any sheet?

Ron de Bruin shows you how at this site. You will have to edit the range
upon which it operates. Currently set at A1:A20

http://www.rondebruin.nl/calendar.htm

To have the code for all worksheet do not place the
worksheet_selectionchange code in each sheet.

Place it in Thisworkbook module and change the event type.

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)


Gord Dibben MS Excel MVP

On Fri, 25 Sep 2009 04:46:01 -0700, cufc1210
wrote:

I have a workbook with different sheets each sheet has its own calendar in
Ce11 A1:A2500

I set the calendar up and copy my sub into VBA and it works fine but after i
exit the workbook then go back in the calendars are all different sizes some
you cant even see tha dates.

is there a way I can prevent this from happening so they all saty the same
size and readable

Cheers in advance



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Calendar control

Just change Ron's code range to A1:A2500


Gord

On Wed, 30 Sep 2009 05:43:01 -0700, cufc1210
wrote:

Sorry Gordon

I just realised that i didnt word that very well, i do only have one
calender control per sheet i meant when i click on cells A1:A2500 the
calensdar appears thanks for the help anyways

"Gord Dibben" wrote:

You really have 2500 separate calendar controls on each sheet?

Why not have just one control which you call out for the cell you select on
any sheet?

Ron de Bruin shows you how at this site. You will have to edit the range
upon which it operates. Currently set at A1:A20

http://www.rondebruin.nl/calendar.htm

To have the code for all worksheet do not place the
worksheet_selectionchange code in each sheet.

Place it in Thisworkbook module and change the event type.

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)


Gord Dibben MS Excel MVP

On Fri, 25 Sep 2009 04:46:01 -0700, cufc1210
wrote:

I have a workbook with different sheets each sheet has its own calendar in
Ce11 A1:A2500

I set the calendar up and copy my sub into VBA and it works fine but after i
exit the workbook then go back in the calendars are all different sizes some
you cant even see tha dates.

is there a way I can prevent this from happening so they all saty the same
size and readable

Cheers in advance




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
Calendar Control donwb Excel Discussion (Misc queries) 0 May 15th 09 08:31 AM
Calendar control D. Excel Discussion (Misc queries) 0 July 3rd 07 11:19 PM
Calendar Control John Excel Worksheet Functions 3 June 13th 07 08:36 AM
Calendar Control -- Is this possible? Steve Excel Discussion (Misc queries) 2 December 29th 06 10:58 PM
Calendar Control Roleeb Excel Worksheet Functions 7 March 19th 06 09:15 AM


All times are GMT +1. The time now is 06:16 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"