LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Font Formatting in Excel 2007

You can handle the color and font formats by selecting the column and
clicking Format/Cells from Excel's menu bar. Whatever selections you make
will apply to all the cells in the selected column. Forcing the case of the
text... that will require VB code. Here is how to make the text always be
upper case...

Right-click the worksheet you want this functionality on, select View Code
from the popup menu that appears and copy/paste the following into the code
window that appears...

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Whoops
Application.EnableEvents = False
If Not Intersect(Target, Range("A:B")) Is Nothing Then
Target.Value = UCase(Target.Value)
End If
Whoops:
Application.EnableEvents = True
End Sub

Change my Columns A and B reference in my Range("A:B") example to whatever
range of cells you want this functionality for.

Rick


"Misha" wrote in message
...
Is there a way of font formatting an enitre column so that it will be in a
particular case, colour, font?
Thanks


 
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
Font Formatting in Excel 2007 M Kan Excel Discussion (Misc queries) 0 July 28th 08 06:06 AM
Excel 2007 quits when trying to change font or print. jchungmd Excel Discussion (Misc queries) 6 July 1st 08 02:10 AM
Excel 2007 default font BK Excel Discussion (Misc queries) 1 May 15th 08 06:14 PM
Excel 2007 Default Font Excel_Oz Excel Worksheet Functions 1 October 8th 07 08:25 AM
Excel 2007 drop down box font change [email protected] Excel Discussion (Misc queries) 3 September 11th 07 01:34 AM


All times are GMT +1. The time now is 07:13 AM.

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"