Sorry, you are right. I did typed it in hurry. Here is my full codes to generate the slide and table. Since We use Coldfusion for front end. I need to code like below
<cfscript>
tempSlide = objPresentation.Slides;
newSlide = tempSlide.Add(tempSlide.Count+1, 12);
slideShape = newSlide.Shapes;
dummyTable = slideShape.AddTable(1,1,10,188,488,10);
</cfscript>
The systax is slightly different from the rest of the world.
When I writeDump(newSlide). I saw so many methods like AddRef, Release, etc. that applies to newSlide and one of them is Delete, then I code like this
newSlide.Delete to delete the newSlide, then I gave me error: simething like "The cause of this exception was that: AutomationException: 0x80020003 - Member not found"
Thank you for your time.
Pham