Error setting pivot table CurrentPage to nonexistent value

J

Jim

I have an Excel 2003 pivot table with 4 page fields. In a macro I set the
CurrentPage property of one or more of these fields to certain fixed values
and attempt to retrieve data. Everything works fine until I try a value that
doesn't exist for a page field, upon which I get a VBA 400 error/crash. I
have tried unsuccessfully to use an ON ERROR GOTO sequence to trap the error.
 

Ask a Question

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.

Ask a Question

Top