I posted a reply to your other post, which I think might be the solution to the problem you had earlier.
As far as creating a PivotTable through VBA, just turn on the macro recorder, make your PivotTable, then turn it off. It's ugly, but it tells you which objects to use in which order.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.