Hello,
I currently have a book publication that references a workbook that contains 3 tabs (sheet 1, sheet 2, and sheet 3).
I only want to print sheet 2 on quarter end months (which are Apr, Jul, Oct, and Jan for us), on other months I would like to exclude these from the pdf.
I am hoping to avoid manually deleting the page after the pdf is created. I am also hoping to avoid maintaining to versions of the report and book publication.
I have tried using VBA code to hide the tab, this works well when printing directly from excel. However, it appears that the VBA code is not run during the book publication process.
Has anyone else run into an issue similar to this?
Thanks,
Luke
I think you are correct that the VB will not activate during the publication process. My advice is to store the 2 sets of reports and publication scripts for the periods you discussed. It won't be that much more overhead, and separate the process nicely. PLus you won't need to manage any code in VB going forward for the reporting process.
Hope this helps.
Thank you for the responses.
We determined it was possible to create a dynamic print range within a single tab, that uses (time, profit center, etc) and control what sections of the reports are printed.
If anyone is interested in further details, feel free to drop me a message at ltourdot @ brownshoe.com
Add a comment