Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Change Font size and color of a cell ?

Status
Not open for further replies.

snehakevin

Technical User
Sep 14, 2003
33
0
0
SG
I am creating an excel sheet from VB6.
This is working fine. I need to change the font size and color of few cells, say sheet heading and column heading...
can anyone help..
 
for cell color use something like :-

myExcelWorksheet.Range("E9").Interior.Color = vbBlue

and for font size something like :-

myExcelWorksheet.Range("H15").Font.Size = 32

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
come on... get involved!
To get the best response to a question, please check out FAQ222-2244 first
A General Guide To Excel in VB FAQ222-3383
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top