C
CJack
Hy,
I want to pass a string parament to a word macro' Document_Open()
event. I am using MS Word XP. my code goes here
Private Sub Document_Open(Param as string)
Dim Fs, flFile
Set Fs = CreateObject("Scripting.FileSystemObject")
Set flFile = Fs.CreateTextFile("c:\testfile", True)
flFile.WriteLine (Param)
flFile.Close
End Sub
When i open the document I am getting an error
"Procedure declaration does not match description of event or
procedure having the same name"
can anybody or somebody :
) out there to help please
many thanks
I want to pass a string parament to a word macro' Document_Open()
event. I am using MS Word XP. my code goes here
Private Sub Document_Open(Param as string)
Dim Fs, flFile
Set Fs = CreateObject("Scripting.FileSystemObject")
Set flFile = Fs.CreateTextFile("c:\testfile", True)
flFile.WriteLine (Param)
flFile.Close
End Sub
When i open the document I am getting an error
"Procedure declaration does not match description of event or
procedure having the same name"
can anybody or somebody :
many thanks