I have an Excel workbook with multiple worksheets titled P1, P2, P3, etc. I would like to create a macro that combines multiple worksheets into one pdf, but only based on a particular cell value. For example, look at cell L1 in each spreadsheet and if the value equals 1 include it in the combined pdf, otherwise ignore that particular worksheet. Cell L1 would be a simple If...Then...Else statement based on other criteria in each worksheet.
I would also like to have the macro prompt the user for the file name and location prior to saving and opening the pdf. I have looked at a number of posts but can't find any that specifically address the cell value criteria. I am new to VBA so I apologize if this is an easy request. Thanks in advance.
I would also like to have the macro prompt the user for the file name and location prior to saving and opening the pdf. I have looked at a number of posts but can't find any that specifically address the cell value criteria. I am new to VBA so I apologize if this is an easy request. Thanks in advance.