LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 14
Default Calendar control font size

I have included a calendar control on a spreadsheet and for an unknown
reason the numbers are so small they are completely illegible.
Does anyone know how to correct this?

The code used is....

Private Sub Calendar1_Click()
Sheet4.Unprotect
Range("G1").Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "D/M/YY"
Range("K1") = 1
ActiveCell.Select
If Range("K1") = 1 Then
Calendar1.Visible = False
Range("G2").Select
End If
Sheet1.Protect
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Sheet4.Unprotect
If Application.Intersect(Range("G1"), Target) Is Nothing Then GoTo
ExitSub
If Target.Cells.Count 1 Then
ExitSub:
If Calendar1.Visible Then Calendar1.Visible = False
Sheet4.Protect
Exit Sub
End If
Range("K1") = 0
Calendar1.Visible = True
'select Today's date in the Calendar
Calendar1.Value = Date
Sheet1.Protect
End Sub

Rob


 
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 - change of a size of this object Drahos Excel Worksheet Functions 1 February 14th 06 06:01 PM
How do you control the font size of the data validation field? jeffwamp Excel Discussion (Misc queries) 1 January 6th 06 01:08 AM
Font size in data validation drop down lists Ryan Excel Discussion (Misc queries) 2 December 11th 05 05:52 PM
font size changes w/ control focus mark kubicki Excel Worksheet Functions 0 June 17th 05 06:00 PM
How to change the default font and size of "comments"? ClayMcQ Excel Discussion (Misc queries) 1 January 7th 05 11:43 PM


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