Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Check font of a cell

I want to check in a range of cells, the font of the cells. If the
font is not Times new roman
it makes the font to times new roman
and the font size to 10
also, if the font (Times New Roman) is not installed in the system
it should give a message and/or a notice.
Any tips will be appreciated
Thanks in advance.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Check font of a cell

On Sep 16, 1:38*pm, Subodh wrote:
I want to check in a range of cells, the font of the cells. If the
font is not Times new roman
it makes the font to times new roman
and the font size to 10
also, if the font (Times New Roman) is not installed in the system
it should give a message and/or a notice.
Any tips will be appreciated
Thanks in advance.


assuming you've already defined your range as myrange-

on error goto err1
with myrange.font
..name = "Times New Roman"
..size = 10
end with
on error goto 0
err1:
msgbox("Times New Roman is not an available font")

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
Check for font Jarle Excel Programming 1 February 25th 08 04:04 PM
Check Font or Font color and take action MSPLearner Excel Programming 3 November 15th 06 11:31 AM
how I can Check the color of font in excel cell ? im-EGY Excel Worksheet Functions 2 September 21st 06 06:02 PM
Check Font? Bill Foster Setting up and Configuration of Excel 2 September 12th 06 10:55 PM
Check if more than one font is used in a cell? Handler Robert Excel Programming 3 November 18th 03 08:59 AM


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