I have an excel file with many sheets. I have created an activex list box to select various sheets and then would like to be able to save as PDF (open up a windows explorer so you can choose a path and put file name). I have the below working to get it to amalgamate the selected for a print preview, but I don't care as much about the print preview, but rather saving the amalgamated sheets as a PDF. Does anyone have a suggestion for changing the last line from printpreview to be able to save?
Sub print_sh()
Dim i As Long
Dim c As Long
Dim SheetArray() As String
With ActiveSheet.ListBoxChoose
For i = 0 To .ListCount - 1
If .Selected(i) Then
ReDim Preserve SheetArray(c)
SheetArray(c) = .List(i)
c = c + 1
End If
Next i
End With
Sheets(SheetArray()).PrintPreview
End Sub