YourHouseKey
New Member
- Joined
- Mar 13, 2021
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Hello,
Looking for assistance with saving multiple sheets in a workbook as individual PDFs in a defined directory where the file name is based on a cell value. However, I only want to save sheets when a cell within that sheet meets a certain criteria.
EXAMPLE: If cell B116 = Y, Then save sheet as PDF with a file name based cell B120. If cell B116 <> Y, Then move on to the next sheet.
I'd like this to sweep through all sheets in my workbook and only export sheets where cell B116 = Y.
Can anybody help with some VBA code to provide a solution?
Thank you!
Looking for assistance with saving multiple sheets in a workbook as individual PDFs in a defined directory where the file name is based on a cell value. However, I only want to save sheets when a cell within that sheet meets a certain criteria.
EXAMPLE: If cell B116 = Y, Then save sheet as PDF with a file name based cell B120. If cell B116 <> Y, Then move on to the next sheet.
I'd like this to sweep through all sheets in my workbook and only export sheets where cell B116 = Y.
Can anybody help with some VBA code to provide a solution?
Thank you!