Change Text size on focus
Rick
I am not sure what you mean by programaticlly selected, but, if you
just are using the mouse to select a cell, the following
Worksheet_SelectionChange code will do what you want. Put this in the
sheet object code:
Public c As String
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range(c).Font.Size = 10
c = ActiveCell.Address
ActiveCell.Font.Size = 32
End Sub
If your cell is being selected through some other VBA code, you will
need to simply put some similar statements in the existing code. If
you by "programatically" you mean using the basic Excel program, then
this should work.
Good luck.
Ken
Norfolk, Va
On Dec 28, 4:38*pm, Rick S. wrote:
Is it possible to change the text size when a cell is selected? *I would like
to simulate magnifying the cell contents when a cell is progmatically
selected to draw user attention to the cell.
Upon leaving that cell the font size would revert to default (its originial
format value).
Happy New Year!
--
Regards
VBA.Noob.Confused
XP Pro
Office 2007
|