简体   繁体   中英

VBA to save a sheet to a password protected PDF

The following saves the activesheet as a PDF:

ActiveSheet.ExportAsFixedFormat _
                               Type:=xlTypePDF, _
                               Filename:="C:\blahblah2.pdf",  _
                               Quality:=xlQualityStandard, _
                               IgnorePrintAreas:=False, _
                               OpenAfterPublish:=False

I need to be able to create a password protected PDF - is this possible using VBA without buying any additional software?

我用PDFsharp使用VS -我的项目是在C# ...这个免费的库工作得非常好

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM