That is why I asked if it was ASP. Sever.CreateObject would be the common method when writing VB script as part of an ASP page but would not be used in a VB6 app.