Hi,
I got an workbook I want to save as pdf. I want the pdf to contain multiple sheets, and that can be done by selecting each sheet and then save it as pdf. The problem is that I don't know which sheet to included. That is because I want to see if it is contents in cell A7, and if so: include that sheet in the selecting-properties.
You can use this code to select sheets:
I want to see if any of the sheets "Rapport_Linjer", "Rapport_Punkt", "Rapport_Polygon", "Rapport_Tekst" and "Rapport_Triangelnett" got contents in the cell A7, and if so: include the sheet in the save as pdf function.
Please let me know if you want to see more of the code, to get the context.
I got an workbook I want to save as pdf. I want the pdf to contain multiple sheets, and that can be done by selecting each sheet and then save it as pdf. The problem is that I don't know which sheet to included. That is because I want to see if it is contents in cell A7, and if so: include that sheet in the selecting-properties.
You can use this code to select sheets:
Code:
Sheets(Array("Rapport", Rapport_Punkt)).Select
I want to see if any of the sheets "Rapport_Linjer", "Rapport_Punkt", "Rapport_Polygon", "Rapport_Tekst" and "Rapport_Triangelnett" got contents in the cell A7, and if so: include the sheet in the save as pdf function.
Please let me know if you want to see more of the code, to get the context.