I created a vba macro a while ago for work. For me it has always run but recently others have found that my code runs into an error when creating a new sheet with a specific name. The error is "ActiveX component can't create object".
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets.Add(After:= _
ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count))
ws.Name = "Assessment Stats"