Show code in...     

  

 

Object Model ExcelApplication Worksheets Worksheet Cells Cell Range
Charts Chart SeriesCollection Series 3DProperties Axis ChartFrame Line Area
PivotField PivotFields PivotTable PivotTables
Style Characters Font Pictures Picture DocumentProperties PageSetup


ExcelApplication Object Reference

CreateFont Method


Syntax:
[VBScript]
Function CreateFont() As SAFont
Description:

Use CreateFont to set a Font object. The Font object represents a font style that you can use when creating a reusable Style, or a single-cell Format. To define a font, call CreateFont, then assign values to the font's properties.

For more information on creating formats and styles, see, Adding Formatting.

Example:
[VBScript]
Set myfont = xlw.CreateFont
myfont.Name = "Arial"
myfont.Size = 10

Top


Copyright © 2005, SoftArtisans, Inc.