|
-
April 11th, 2000, 02:53 AM
#1
Access function in Word
I have written some functions in Word document, not macro because I need to pass parameter into it.
How can I access them in my VB application?
the following is my simple code:
Private Sub Command1_Click()
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open("c:\henry.doc")
[What should I need to do in this part? ]
WordObj.Visible = True
Set WordObj = Nothing
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|