+ Reply to Thread
Results 1 to 2 of 2

VB Code to password protect PDF File created

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to password protect PDF File created

    Hello:

    Please refer to attached file.
    I am using below code to successfully create PDF file at location in Cell A131 with file name in Cell A129 for highligted content cell Range O104:T108.
    I need to add code within below code to add Password from Cell O102 for PDF file created.
    Let me know if you have any questions.

    Please Login or Register  to view this content.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VB Code to password protect PDF File created

    There's not a built-in argument to set a password when creating a PDF file. These links offer a work-around.

    Making Password Protected PDFs using Excel Vba

    Converting excel into password protected PDF
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VB Code to password protect the excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2015, 08:27 AM
  2. VB Code to password protect VB Module to avoid other seeing the code
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2015, 11:33 AM
  3. VB code to protect password
    By sshrikanth2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2014, 10:55 AM
  4. [SOLVED] [VBA CODE] Password Protect a hidden sheet while using other code
    By cityinbetween in forum Excel General
    Replies: 11
    Last Post: 09-26-2014, 03:15 AM
  5. Protect a range in a newly created excel file
    By burugudug in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-16-2010, 06:00 PM
  6. Protect Sheet & Password Protect Code
    By KLahvic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2009, 04:08 PM
  7. [SOLVED] Password protect a workbook created and emailed by a macro?
    By isewdollies in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2006, 03:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1