这样只能传送255个字符,怎样能改为备注型的啊?我需要传递更多的字符.
我把代码传上来,方便各位查看
On Error Resume Next
Dim docApp As Object
Set docApp = GetObject(, "Word.Application")
If Err Then
Err.Clear
Set docApp = CreateObject("Word.Application")
If Err Then
MsgBox "操作中没有装WORD程序!", vbQuestion, "系统提示"
Exit Sub
End If
End If
docApp.Visible = False
Dim Doc As Object
Dim win As Object
Set Doc = docApp.Documents.Add(CurrentProject.Path & "\一般处罚.doc")
Set win = Doc.ActiveWindow
win.View.SeekView = wdSeekPrimaryHeader
With win.Selection.Find