Word VBA教程:DefaultTab属性

显示指定的对话框时,该属性返回或设置活动选项卡。WdWordDialogTab,可读写。

WdWordDialogTab 可以是下列 WdWordDialogTab 常量之一:
wdDialogEmailOptionsTabSignature
wdDialogFilePageSetupTabCharsLines
wdDialogFilePageSetupTabMargins
wdDialogFilePageSetupTabPaperSize
wdDialogFormatBordersAndShadingTabBorders
wdDialogFormatBordersAndShadingTabShading
wdDialogFormatBulletsAndNumberingTabNumbered
wdDialogFormatDrawingObjectTabColorsAndLines
wdDialogFormatDrawingObjectTabPicture
wdDialogFormatDrawingObjectTabSize
wdDialogFormatDrawingObjectTabWeb
wdDialogFormatFontTabAnimation
wdDialogFormatFontTabFont
wdDialogFormatParagraphTabTeisai
wdDialogInsertIndexAndTablesTabIndex
wdDialogInsertIndexAndTablesTabTableOfContents
wdDialogInsertSymbolTabSpecialCharacters
wdDialogLetterWizardTabLetterFormat
wdDialogLetterWizardTabRecipientInfo
wdDialogNoteOptionsTabAllEndnotes
wdDialogOrganizerTabAutoText
wdDialogOrganizerTabMacros
wdDialogTablePropertiesTabCell
wdDialogTablePropertiesTabRow
wdDialogEmailOptionsTabQuoting
wdDialogEmailOptionsTabStationary
wdDialogFilePageSetupTabLayout
wdDialogFilePageSetupTabPaper
wdDialogFilePageSetupTabPaperSource
wdDialogFormatBordersAndShadingTabPageBorder
wdDialogFormatBulletsAndNumberingTabBulleted
wdDialogFormatBulletsAndNumberingTabOutlineNumbered
wdDialogFormatDrawingObjectTabHR
wdDialogFormatDrawingObjectTabPosition
wdDialogFormatDrawingObjectTabTextbox
wdDialogFormatDrawingObjectTabWrapping
wdDialogFormatFontTabCharacterSpacing
wdDialogFormatParagraphTabIndentsAndSpacing
wdDialogFormatParagraphTabTextFlow
wdDialogInsertIndexAndTablesTabTableOfAuthorities
wdDialogInsertIndexAndTablesTabTableOfFigures
wdDialogInsertSymbolTabSymbols
wdDialogLetterWizardTabOtherElements
wdDialogLetterWizardTabSenderInfo
wdDialogNoteOptionsTabAllFootnotes
wdDialogOrganizerTabCommandBars
wdDialogOrganizerTabStyles
wdDialogTablePropertiesTabColumn
wdDialogTablePropertiesTabTable
wdDialogToolsAutoCorrectExceptionsTabFirstLetter
wdDialogToolsAutoCorrectExceptionsTabHangulAndAlphabet
wdDialogToolsAutoCorrectExceptionsTabIac
wdDialogToolsAutoCorrectExceptionsTabInitialCaps
wdDialogToolsAutoManagerTabAutoCorrect
wdDialogToolsAutoManagerTabAutoFormat
wdDialogToolsAutoManagerTabAutoFormatAsYouType
wdDialogToolsAutoManagerTabAutoText
wdDialogToolsAutoManagerTabTraits
wdDialogToolsEnvelopesAndLabelsTabEnvelopes
wdDialogToolsEnvelopesAndLabelsTabLabels
wdDialogToolsOptionsTabAcetate
wdDialogToolsOptionsTabBidi
wdDialogToolsOptionsTabCompatibility
wdDialogToolsOptionsTabEdit
wdDialogToolsOptionsTabFileLocations
wdDialogToolsOptionsTabFuzzy
wdDialogToolsOptionsTabGeneral
wdDialogToolsOptionsTabHangulHanjaConversion
wdDialogToolsOptionsTabPrint
wdDialogToolsOptionsTabProofread
wdDialogToolsOptionsTabSave
wdDialogToolsOptionsTabSecurity
wdDialogToolsOptionsTabTrackChanges
wdDialogToolsOptionsTabTypography
wdDialogToolsOptionsTabUserInfo
wdDialogToolsOptionsTabView
wdDialogWebOptionsBrowsers
wdDialogWebOptionsEncoding
wdDialogWebOptionsFiles
wdDialogWebOptionsFonts
wdDialogWebOptionsGeneral
wdDialogWebOptionsPictures

expression.DefaultTab

expression   必需。该表达式返回“应用于”列表中的一个对象。

VBA示例

本示例显示所选的“页面设置”对话框中的“纸张来源”选项卡。


With Dialogs(wdDialogFilePageSetup)
    .DefaultTab = wdDialogFilePageSetupTabPaperSource
    .Show
End With

Word VBA教程

Word VBA参考教程:目录1 Word VBA参考教程:目录2
Word VBA参考教程:目录3 Word VBA参考教程:目录4
Word VBA参考教程:目录5 Word VBA参考教程:目录6
Word VBA参考教程:目录7 Word VBA参考教程:目录8
Word VBA参考教程:目录9 Word VBA参考教程:目录10
版权所有 © 中山市飞娥软件工作室 证书:粤ICP备09170368号