Rules based?
If so, I believe you will need to declare "a" (poor choice for a variable name IMHO) globally so that it's value remains sub to sub. Might need to do "fs" also, but not sure. Thank you, Mitch Lawrence Lead Applications Analyst Technical Support - NPR/Automation CHRISTUS Information Management *: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Send a "thank you <http://intranet.christushealth.org/spiritBuck/Default.asp> " to someone! ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bennett, Brian Sent: Tuesday, January 29, 2008 10:45 AM To: '[email protected]' Subject: [Talk] CreateObject questions. Morning all. If I do the following in step 1: Set fs = CreateObject ("Scripting.FilesystemObject") Set a = fs.CreateTextFile ("c:\logs\somefilename.txt", True) And then in step 2: a.WriteLine ("Some text goes here") a.WirteLine ("Some more text goes here") I get an error in step 2 since I have left the sub in step 1. Do I need to Dim a as ?, or do I need to set a= fs before I can write to a, for each step that I need to write to? Thanks. Brian Bennett Affinity Health Systems PBS\Clinic Billing (920)628-9055 [EMAIL PROTECTED]
<<image001.png>>
