Skip to main content

HOW TO CREATE SAVE BUTTON IN EXCEL.

COPY CODE AND PASTE MODULE.
Sub SaveInvoiceAsPDFAndClear()
    Dim NewFN As Variant
    NewFN = "E:\AKHILESH AUTO MOBILE\INVOICE DATA\" & Range("H14").Value & ".pdf"
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=NewFN, _
        Quality:=xlQualityStandard, IncludeDocProperties:=True, _
        IgnorePrintAreas:=False, OpenAfterPublish:=True
    
End Sub
 

Comments

Popular posts from this blog

How to download YouTube Video?

How to download music from  Youtube?  » Do you wonder how to download music from Youtube?                                                                                                                                                                                                              Click the green “Download” button to save the video, or choose the format you like  (MP3, MP4, WEBM, 3GP). Then click on the gray arrow on the right of...

Ankit Nishad❤️✨🖤

 Ankit Nishad❤️✨🖤 THIS IS SOME PIC PLEASE LIKE COMMENT SHARE

Ankit Nishad ❤️✨🖤

Ankit Nishad ❤️✨🖤