I am trying to use the company code in a path on a script. I thought I could simply have a statement ""CompanyCode = oSession.CompanyCode"" and then use the ""CompanyCode"" in the path, but am getting an error. It seems to work in the first company, but when I change companies I get an Object required 'oSession' error. Can anyone point me in the right direction for setting the current company code?