1、
Dim selection As Word.selection
Set selection = OLE1.object.Application.selection
selection.GoTo what:=wdGoToBook, Name:=str
selection.Font.Name = "宋体"
selection.Font.Size = 15
OLE1.object.Application.ActiveWindow.View.Type = 32、
Dim selection As Object
Set selection = OLE1.object.Application.selection
With selection
.GoTo what:=wdGoToBook, Name:=str
.Font.Name = "宋体"
.Font.Size = 15
End With
OLE1.object.Application.ActiveWindow.View.Type = 3这两段,只有一个在一个机器上能用,令一个机器上不行,反之依然
提示没有with block哪位高手能给解释一下
Dim selection As Word.selection
Set selection = OLE1.object.Application.selection
selection.GoTo what:=wdGoToBook, Name:=str
selection.Font.Name = "宋体"
selection.Font.Size = 15
OLE1.object.Application.ActiveWindow.View.Type = 32、
Dim selection As Object
Set selection = OLE1.object.Application.selection
With selection
.GoTo what:=wdGoToBook, Name:=str
.Font.Name = "宋体"
.Font.Size = 15
End With
OLE1.object.Application.ActiveWindow.View.Type = 3这两段,只有一个在一个机器上能用,令一个机器上不行,反之依然
提示没有with block哪位高手能给解释一下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货