Your loop will be infinite, since your condition can never be false ( i will always be equal to i ). So you need to change your loop to get started with the worksheet of the latter, but skip to the first. You are almost there.
count = objWorkbook.Worksheets.Count - 1 For i = count To 1 Step -1 objWorkbook.Worksheets{i}.Delete Next
That should do it (actually it is, I just tested it).
source share