Article ID: 182102
Article Last Modified on 6/17/2005
Open WordBasic.Call "Library.OutputFile$", Arg1$ For Append As 2to this:
Open WordBasic.Call("Library.OutputFile$", Arg1$) For Random As 2
Sub MAIN()
Dim Arg1$
Arg1$ = "A"
' This line contains a Function Call.
Open Call("Library.OutputFile$", Arg1$) For Append As 2
Close 2
End Sub
Public Sub MAIN()
Dim Arg1$
Arg1$ = "A"
' This line has been converted to a procedure Call and will cause
' the error mentioned earlier in this article.
Open WordBasic.Call "Library.OutputFile$", Arg1$ For Append As 2
Close 2
End Sub
For additional information, please see the following article in the
Microsoft Knowledge Base:
181058 OFF98: How to Run Sample Code from Knowledge Base Articles
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe
Keywords: kberrmsg kbbug kbmacroexample kbdtacode kbpending KB182102