Share via

password protected PDF using VBA

Anonymous
2018-08-16T13:26:25+00:00

I have  to create a password protected PDF - is this possible using VBA. without buying any additional software?

Kindly suggest me....

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2018-08-17T07:26:42+00:00

    From word, I'm save as pdf. When I'm save as pdf Manually I can protect. But i required in vba.

    Record macro is not working in this steps..

    Suggest me...

    I con't use any additional 3rd party software.

     

    How do you manage to save a protected PDF from Word? Certainly the Windows version doesn't permit this. In fact it warns specifically that it will not do so:

    You will need third party software that is VBA enabled in order to do this. Acrobat is the obvious, if expensive, choice.

    PDF Creator has a free version that will do the job, but not unless you get approval to use it.

    I personally prefer version 2.5 to the latest bloatware -https://www.filepuma.com/download/pdfcreator_2.5.2-14942/

    Watch out for unwanted software and browser modifications that may come with this version. You only need to install the core program.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-08-16T18:13:27+00:00

    Try this ...

    ActiveDocument.SaveAs2 FileName:="Your Path and Name", FileFormat:=word.WdSaveFormat.wdFormatPDF, Password:="1234"

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-08-16T13:45:44+00:00

    From word, I'm save as pdf. When I'm save as pdf Manually I can protect. But i required in vba.

    Record macro is not working in this steps..

    Suggest me...

    I con't use any additional 3rd party software.

     

    Please suggest me on priority....

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-08-16T13:38:37+00:00

    From word, I'm save as pdf. When I'm save as pdf Manually I can protect. But i required in vba.

    Record macro is not working in this steps..

    Suggest me...

    I con't use any additional 3rd party software.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2018-08-16T13:34:18+00:00

    Are you using Office/Word pdf or are you using a third party pdf creator?

    Was this answer helpful?

    0 comments No comments