Home » いちばんやさしいPowerPoint VBAの教本 » PowerPoint.FontとExcel.Fontのプロパティ比較一覧

PowerPoint.FontとExcel.Fontのプロパティ比較一覧

動作検証バージョン:64bit Windows 10 Pro + 32bit PowerPoint & Excel(バージョン2011 ビルド13426.20308 Microsoft Store)


『いちばんやさしいPowerPoint VBAの教本』p.236より

拙著『いちばんやさしいPowerPoint VBAの教本』p.236のワンポイントで、PowerPoint VBAのFontオブジェクトについて触れています。

PowerPoint VBAだけでなくExcel VBAにも、フォントを表すFontオブジェクトが存在しています。

PowerPoint VBAのFontオブジェクトと、Excel VBAのFontオブジェクトは、もちろん全くの別物ですが、フォントを操作するオブジェクトという意味では似た部分もあり、同じ名前のプロパティが複数用意されています。

その一方で、いずれかにしか用意されていないプロパティもあります。
そんなFontオブジェクトが持つプロパティが、PowerPoint VBAとExcel VBAとでどれくらい同じで、どれくらい違うのか比較するための一覧を、作成しておきます。

PowerPoint.Font
が持つプロパティ
戻り値Excel.Font
が持つプロパティ
戻り値
ApplicationApplicationApplicationApplication
AutoRotateNumbersMsoTriState--
--BackgroundVariant
BaselineOffsetSingle--
BoldMsoTriStateBoldVariant
ColorColorFormatColorVariant
--ColorIndexVariant
--CreaterXlCreator
EmbeddableMsoTriState--
EmbeddedMsoTriState--
EmbossMsoTriState--
--FontStyleVariant
ItalicMsoTriStateItalicVariant
NameStringNameVariant
NameAsciiString--
NameComplexScriptString--
NameFarEastString--
NameOtherString--
ParentObjectParentObject
ShadowMsoTriState--
SizeSingleSizeVariant
--StrikethroughVariant
SubscriptMsoTriStateSubscriptVariant
SuperscriptMsoTriStateSuperscriptVariant
--ThemeColorVariant
--ThemeFontXlThemeFont
--TintAndShadeVariant
UnderlineMsoTriStateUnderlineVariant

オブジェクトブラウザーを眺めているだけだと、似たプロパティがかなりあると感じられたかもしれませんが、こうして一覧にしてみると、一方にしかないプロパティが結構あると感じられます。

Excel VBAの場合止むを得ませんが、戻り値がVariantとなっているプロパティが多いことも目立ちます。

最終更新日時:2020-12-10 09:59

[スポンサードリンク]

Home » いちばんやさしいPowerPoint VBAの教本 » PowerPoint.FontとExcel.Fontのプロパティ比較一覧

「いちばんやさしいPowerPoint VBAの教本」の記事一覧

検索

Copyright © インストラクターのネタ帳 All Rights Reserved.

.