All,
I was able to almost get what I needed with the code below, however, I still have a couple issues:
1. Is there a way to "unselect" or "deselect" these worksheets at the end of the Sub? -This is going to cause me problems in the future.
2. It appears that the way the Array is selecting sheets is by how they are listed from left to right. If someone moves a sheet around in my workbook then the code becomes null and void. Is there a way I can tell it to select this sheets WITHOUT using the the sheet name (because people will change it) and without using it's location from left to right?
3. When it creates the PDF, it doesn't print it in the order that I listed (2,11,12,3,4,5,6), it changes it and prints it in the numerical order (2,3,4,5,6,11,12). Is there any way that I can lock the order as I have written it in the code?
Sub PDFprint()
ThisWorkbook.Sheets(Array(2, 11, 12, 3, 4, 5, 6)).Select
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:="Testthismother****er", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End Sub
Thanks,
Kelsey