+ Reply to Thread
Results 1 to 3 of 3

Code To "Save As" And To Prompt To Enter A Password To Encrypt The Document?

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    68

    Code To "Save As" And To Prompt To Enter A Password To Encrypt The Document?

    Hi,

    I have made the below code (Ive just found out it doesnt actually "save" so im missing a line or two somewhere).

    It brings up the Save As box and the file name is taken from certain cells in the workbook, what I need is before this save as box comes up it prompts the user to input their own password to encrypt the document so wherever it is eventually saved to, no-one will be able to open it without the password that was entered.

    Is this possible?

    Thank You

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Code To "Save As" And To Prompt To Enter A Password To Encrypt The Document?

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    09-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    68

    Re: Code To "Save As" And To Prompt To Enter A Password To Encrypt The Document?

    Works a treat, thanks

+ 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] Saving a range of excel cells as a script file (scr.) without "Save As" prompt screen
    By blake.dennis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2016, 01:16 PM
  2. Receiving "enable content" warning after executing "save as" code
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2014, 12:02 PM
  3. Diable "Save or Open" prompt for outlook link
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2014, 09:10 PM
  4. Code only runs when a user hits "Save", not "Save As"
    By cjstewart8 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2014, 07:41 PM
  5. Only "save" option in save prompt while closing excel sheet
    By rudswa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 08:07 PM
  6. Replies: 1
    Last Post: 03-18-2012, 11:09 PM
  7. How do I stop the "do you want to save changes" prompt using VB code
    By john928 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2005, 12:05 PM

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