# 我执行不会有问题!

Posted by Cary on October 28, 1998 at 23:46:03:

In Reply to: 用vb开启word 物件如何才可关闭水平尺规(horizontalruler)? posted by allan chien on October 22, 1998 at 14:51:49:

我执行不会有问题：
程式如下：
Dim WordApp As New Word.Application
Dim WordDOc As Word.Document
Dim WordIndex As Integer
WordApp.Visible = True
Set WordDOc = WordApp.Documents.Add
WordApp.ActiveWindow. _
DisplayHorizontalScrollBar = False
WordApp.ActiveWindow.DisplayRulers = False

Follow Ups: