Click to See Complete Forum and Search --> : Access function in Word


lamckh
April 11th, 2000, 02:53 AM
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