-
I am trying to create an object ONCE to write a logfile and want various Functions to be able to use the same object, How can I do this?
Right now I am using the following within an click event and it works fine, but I want to be able to just use my Logfile.Writeline command within any function to append to the same file...
Set Logfile = fso.CreateTextFile("c:\installlog.txt", True)
Logfile.WriteLine " Install Log Created" & " " & (Now)
Thanks.
-
-
Place the following in the Declarations section of a module
Public Logfile as Object
------------------
Marty