Document.ActiveThemeDisplayName property (Word)
Returns the display name of the active theme for the specified document. Read-only String.
Syntax
expression. ActiveThemeDisplayName
expression A variable that represents a Document object.
Remarks
The ActiveThemeDisplayName property returns "none" if the document doesn't have an active theme. A theme's display name is the name that appears in the Theme dialog box. This name may not correspond to the string you would use to set a default theme or to apply a theme to a document.
Example
This example returns the display name of the active theme for the current document.
Sub DisplayThemeName()
ActiveDocument.ApplyTheme "artsy 100"
MsgBox ActiveDocument.ActiveThemeDisplayName
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin