Word VBA教程:Visual Basic 命令对照表 B

ABCDEFGHIJKLMNOPRSTUVWY

B  
Beep Beep
Begin Dialog...End Dialog 创建并显示自定义窗体。有关在窗体中添加控件的信息,请参阅将控件添加至窗体
Bold, Bold() Selection.Font.Bold = True

x = Selection.Font.Bold

name = BookmarkName$(num) name = ActiveDocument.Bookmarks(num).Name
BorderBottom, BorderBottom() With ActiveDocument.Paragraphs(1).Borders(wdBorderBottom)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderBottom).LineStyle

BorderInside, BorderInside() With Selection.Borders

    .InsideLineStyle = wdLineStyleSingle

    .InsideLineWidth = wdLineWidth075pt

End With

x = Selection.Borders.InsideLineStyle

BorderLeft, BorderLeft() With ActiveDocument.Paragraphs(1).Borders(wdBorderLeft)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderLeft).LineStyle

BorderLineStyle, BorderLineStyle() Selection.Borders(wdBorderType).LineStyle = wdLineStyle

x = ActiveDocument.Paragraphs(1).Borders(wdBorderType).LineStyle

BorderNone, BorderNone() Selection.Borders.Enable = False

'或

Selection.Borders(wdBorderLeft).LineStyle = wdLineStyleNone

x = Selection.Range.Borders.Enable

BorderOutside, BorderOutside() With Selection.Borders

    .OutsideLineStyle = wdLineStyleSingle

    .OutsideLineWidth = wdLineWidth075pt

End With

x = Selection.Borders.OutsideLineStyle

BorderRight, BorderRight() With ActiveDocument.Paragraphs(1).Borders(wdBorderRight)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderRight).LineStyle

BorderTop, BorderTop() With Selection.Paragraphs(1).Borders(wdBorderTop)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderTop).LineStyle

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号