I am successfully creating a pivottable based on usedrange for a source table that has varying columns and rows. How can I use VBA to select all available fields to add to the report? Right now it comes up with the "Available Field List" so I manually check the all of the available fields, then I can continue on with the VBA code that does other stuff (like adds conditional formatting). I need to be able to automatically select all of the fields listed to add to the report.
Also, is there a way to get a "usedrange" for a pivottable? I need to add conditional formatting to all cells that have data in them so if I could get the used range, I could do that pretty easily with a nested for loop.
This is kind've urgent so if anyone can just give me some pointers, I would really appreciate it.
Also, is there a way to get a "usedrange" for a pivottable? I need to add conditional formatting to all cells that have data in them so if I could get the used range, I could do that pretty easily with a nested for loop.
This is kind've urgent so if anyone can just give me some pointers, I would really appreciate it.