MS Word 的 VBA:有没有办法以编程方式进行垂直选择?

Rob*_*tos 5 vba ms-word selection

在 MS Word 的 VBA 中,是否有可能进行垂直选择?我的意思是:是否可以在 MS Word VBA 例程中模拟 Shift+Alt+Selection(通过鼠标)键的行为?

Ahm*_* AU 1

我在2007 Word Developer Reference - Selection.ColumnSelectMode Property 中找到了这个

With Selection
    .Collapse Direction:=wdCollapseStart
    .ColumnSelectMode = True
    .MoveRight Unit:=wdWord, Count:=10, Extend:=wdExtend
    .MoveDown Unit:=wdLine, Count:=20, Extend:=wdExtend
    .Copy
    .ColumnSelectMode = False
End With
Run Code Online (Sandbox Code Playgroud)

发现它正在工作。