Code
Code
' Define the folder path to save the combined PDF (you can modify this path)
FilePath = "D:\PES\P.E.S\invoice\Oct.24\pdf oct24\" ' Modify as needed
' Select the sheets in the correct order: Original, Duplicate, Triplicate
Worksheets(Array(wsOriginal.Name, wsDuplicate.Name, wsTriplicate.Name)).Select