I have a ton of cells and pivot charts that calculate/populate based on data from an Access Database. This data is used to create monthly reports
Every product type has its own calculations and charts, but there are some months where a product is not produced so its specific calculations are zero and its pivot charts are blank
I have code that generates a PDF, but I only want it to generate a PDF for the products that were produced instead of all the products, essentially excluding calculations that are zero
This is where I am having issues
I want to have code that determines a product has been manufactured and add that section to the print area which is used to generate the PDF
I've tried essentially creating check boxes that used conditional IF THEN statements to set the print area, but there are too many products/combinations to create individual IF statements for each scenario
Is there a way to tell excel this is the print area, but if this condition is met (product is created) add it to the print area? Instead of using a replacement effect like an IF statement?
Alternatively is there a way to have excel export and the user can still select the pages via a macro?
-Nathan
Bookmarks