PC Review


Reply
Thread Tools Rate Thread

Check font of a cell

 
 
Subodh
Guest
Posts: n/a
 
      16th Sep 2011
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.



 
Reply With Quote
 
 
 
 
Matthew Dyer
Guest
Posts: n/a
 
      16th Sep 2011
On Sep 16, 1:38*pm, Subodh <getsub...@gmail.com> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Font or Font color and take action =?Utf-8?B?TVNQTGVhcm5lcg==?= Microsoft Excel Programming 3 15th Nov 2006 11:31 AM
how I can Check the color of font in excel cell ? =?Utf-8?B?aW0tRUdZ?= Microsoft Excel Worksheet Functions 2 21st Sep 2006 06:02 PM
DataGrid Cell: Custom Font/Backcolor/Format cell by cell (VB.NET) DraguVaso Microsoft ADO .NET 7 28th Jan 2004 09:04 PM
DataGrid Cell: Custom Font/Backcolor/Format cell by cell (VB.NET) DraguVaso Microsoft VB .NET 2 19th Dec 2003 10:03 PM
Check if more than one font is used in a cell? Handler Robert Microsoft Excel Programming 3 18th Nov 2003 08:59 AM


Features
 

Advertising
 

Newsgroups
 


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