Sub fen() '检测分栏
'
' fen Macro
' 宏在 2006-7-20 由 student 录制
'
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type <> wdPrintView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
With Selection.PageSetup.TextColumns
If .Count = 3 Then
num = num + 2
End If
' .EvenlySpaced = True
' .LineBetween = False
' .Width = CentimetersToPoints(4.38)
' .Spacing = CentimetersToPoints(0.75)
End With
MsgBox num
End Sub
这是一个测试分栏的宏你可以看看