+ Reply to Thread
Results 1 to 5 of 5

I need help to password protect the PDF file generated from MACRO/VBA

  1. #1
    Registered User
    Join Date
    07-20-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 - Excel Version 2307
    Posts
    2

    I need help to password protect the PDF file generated from MACRO/VBA

    I am currently working on a macro excel file and its working fine, it is automatically sending email with PDF attachment as per my previous requirement, however I wanted to make the PDF generated file a password protected. How can i do this?
    Last edited by julsq; 07-20-2023 at 05:15 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,847

    Re: I need to help to password protect the PDF file generated from MACRO/VBA

    Welcome to the forum.

    Is your Excel version 365? Please add this information to your profile.

    Click on Edit to open your post, paste your VBA code, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-20-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 - Excel Version 2307
    Posts
    2

    Re: I need help to password protect the PDF file generated from MACRO/VBA

    Hi, Thank you for welcoming me.

    Yes, Microsoft 365 - Excel Version 2307. I have added in my profile.

    Will you be able to help me to password protect the PDF file generated from MACRO/VBA?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,847

    Re: I need help to password protect the PDF file generated from MACRO/VBA

    I won't, but whoever does will need to see your VBA code - please provide it as indicated in my previous post, or you could attach a workbook.

  5. #5
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: I need help to password protect the PDF file generated from MACRO/VBA

    I don't think this ability is available in Excel. You'd probably need to use some third party print driver, e.g. PDF Creator or Adobe itself.

+ 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. How to protect a file of Excel-Macro enabled workbook with password?
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-16-2013, 02:16 PM
  2. Save generated xml file to a web folder with user name and password
    By skumaar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2010, 12:02 PM
  3. macro to password protect exel file
    By anelh6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2005, 09:05 PM
  4. Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Replies: 1
    Last Post: 06-24-2005, 09:59 AM
  8. Replies: 1
    Last Post: 06-23-2005, 09:05 PM

Tags for this Thread

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