Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Change the Font Style in VBA


What am I doing wrong? I am trying to change the font style of cells
with text values in them but they still all show up as Arial. The font
size, bold, and alignments work, though. Why not the style?


.Range("D1", "I1").Borders.LineStyle = xlLineStyleNone
.Range("A3", "K5").HorizontalAlignment = xlHAlignCenter
.Range("A3", "K5").Font.FontStyle = "Century Gothic"
.Range("A3", "K5").Font.Size = 12
.Cells(1, 4).Font.FontStyle = "HLV"
.Cells(1, 4).Font.Size = 14
.Cells(1, 4).Font.Bold = True
.Cells(5, 1).Font.Bold = True





--
justme0010
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Change the Font Style in VBA


ActiveCell.Font.Name = "Century Gothic"
'--

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"justme0010"
wrote in message
What am I doing wrong? I am trying to change the font style of cells
with text values in them but they still all show up as Arial. The font
size, bold, and alignments work, though. Why not the style?


.Range("D1", "I1").Borders.LineStyle = xlLineStyleNone
.Range("A3", "K5").HorizontalAlignment = xlHAlignCenter
.Range("A3", "K5").Font.FontStyle = "Century Gothic"
.Range("A3", "K5").Font.Size = 12
.Cells(1, 4).Font.FontStyle = "HLV"
.Cells(1, 4).Font.Size = 14
.Cells(1, 4).Font.Bold = True
.Cells(5, 1).Font.Bold = True

--
justme0010
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
How to write a formula to set the Font Style? Eric Excel Discussion (Misc queries) 2 May 3rd 07 07:40 AM
How do I change sheet notation from R1C1 style to A1 style in XL 2 Sherlock1506 Setting up and Configuration of Excel 1 December 5th 06 04:22 PM
font style of worksheet functions gvm Excel Worksheet Functions 4 January 20th 06 09:30 PM
how do i get font style back on toolbar? melissa Excel Discussion (Misc queries) 2 July 18th 05 09:55 PM
Icon button - font/style cvgairport Excel Discussion (Misc queries) 1 December 2nd 04 01:51 AM


All times are GMT +1. The time now is 08:39 PM.

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"