I needed to find out how to populate a table cell in a PowerPoint using VBA.
As in the example on creating PowerPoint files I posted I used a macro
recorder to figure out the VBA and then used Google to find someone
else who converted the code before 🙂
<script language=vbScript>
Sub CreatePPT()
Set wApp = CreateObject(“PowerPoint.Application”)
wApp.visible=true
pptLoc=document.getElementById(“pptLoc”).value
set objPres = wApp.presentations.open(pptLoc)
//Where The name of the Table is “Table 7”
objPres.Slides.Item(1).Shapes(“Table 7”).Table.Cell(2,2).Shape.TextFrame.TextRange.Text = “10/20/03”
End Sub
</script>