Results 1 to 10 of 31

Thread: Test

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Make a created file protected by password

    Some notes in support of this main question from the web https://www.excelforum.com/excel-pro...-password.html , ( for Alan )
    Original PM request..
    Is it possible for you to help me understand how to make the files created with this code be protected so others cannot make any changes? If it is with a password, that would be optimal, I just don't want any error messages telling the user that a password will allow them to make changes if possible. If that makes sense.
    Shortly later Request from here https://www.excelforum.com/excel-pro...ml#post5876012
    adjust the following code, to save the files that are being created as protected files (may be opened and viewed but not edited)? If a message is necessary if someone tries to change values, I would want the message to say only 'changes cannot be made without the appropriate password'.

    The thing required in the first request I suggested could be a bit difficult. The second looks initially as if it could be straight forward and conventional

    Forum Sample.xlsm is the OPs original file from that thread



    , and here is a snippit from his coding
    Code:
                dws.Name = dName
                dFilePath = dFolderPath & dName & ".xlsx"
                Application.DisplayAlerts = False
                    dwb.SaveAs dFilePath, xlOpenXMLWorkbook
                Application.DisplayAlerts = True
    Attached Files Attached Files
    Last edited by DocAElstein; 10-10-2023 at 11:37 AM. Reason: Snippet from OPs original macro - SaveAs part

Similar Threads

  1. Test
    By DocAElstein in forum Test Area
    Replies: 0
    Last Post: 03-30-2020, 07:20 PM
  2. test
    By EFmanagement in forum Test Area
    Replies: 0
    Last Post: 09-29-2019, 11:01 PM
  3. This is a test Test Let it be
    By Admin in forum Test Area
    Replies: 6
    Last Post: 05-30-2014, 09:44 AM
  4. Test
    By Excel Fox in forum Word Help
    Replies: 0
    Last Post: 07-05-2011, 01:51 AM

Posting Permissions

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