Sub Log2file(s)dim xx = bOpenSeQFile("C:\temp\excellog-" & format(date,"yyyy-mm-dd") & ".txt"if x < 0 then Msgbox x & " " & Error(abs(x))End IfPrint #x,Now() & " " & sclose #xEnd Sub