Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default fonts for if...then statements

Hello, and thanks in advance for you help:

Without itterating through each cell, is there a way to format the
cells in one column containing numerics , and leave the non-numerics
as is?

Selection.font.Italic = True
Selection.font.Name = "Century Gothic"

Thanks,
Jimmy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default fonts for if...then statements

Hi Jimmy

Try this for column C

Sub test()
On Error Resume Next
With Columns("C").SpecialCells(xlCellTypeConstants, xlNumbers)
.Font.Italic = True
.Font.Name = "Century Gothic"
End With
On Error GoTo 0
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Jimmy" wrote in message ups.com...
Hello, and thanks in advance for you help:

Without itterating through each cell, is there a way to format the
cells in one column containing numerics , and leave the non-numerics
as is?

Selection.font.Italic = True
Selection.font.Name = "Century Gothic"

Thanks,
Jimmy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default fonts for if...then statements

Hello, Ron:
It works!!!
Thanks a lot.
Jimmy




Ron de Bruin wrote:
Hi Jimmy

Try this for column C

Sub test()
On Error Resume Next
With Columns("C").SpecialCells(xlCellTypeConstants, xlNumbers)
.Font.Italic = True
.Font.Name = "Century Gothic"
End With
On Error GoTo 0
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Jimmy" wrote in message ups.com...
Hello, and thanks in advance for you help:

Without itterating through each cell, is there a way to format the
cells in one column containing numerics , and leave the non-numerics
as is?

Selection.font.Italic = True
Selection.font.Name = "Century Gothic"

Thanks,
Jimmy


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
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
How can I lengthen the drop down Fonts list to show more fonts at Moser D Excel Discussion (Misc queries) 1 February 5th 06 03:24 PM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM
fonts dong Excel Discussion (Misc queries) 1 January 18th 05 11:37 PM
Fonts Ron de Bruin Excel Programming 0 September 2nd 03 07:57 PM


All times are GMT +1. The time now is 08:26 AM.

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"