+ Reply to Thread
Results 1 to 5 of 5

How do I save a file as non-read only from a read only

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    Fargo, ND USA
    MS-Off Ver
    10
    Posts
    32

    How do I save a file as non-read only from a read only

    I have a macro that saves a copy of a read only file. Which works great except it saves the new in read only mode. I have spent several hours searching the net but have struck out. Appreciate the help.

    Please Login or Register  to view this content.
    Last edited by tomneedshelp; 07-28-2016 at 11:18 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How do I save a file as non-read only from a read only

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    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



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-28-2016
    Location
    Fargo, ND USA
    MS-Off Ver
    10
    Posts
    32

    Re: How do I save a file as non-read only from a read only

    Learned something new again - Thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How do I save a file as non-read only from a read only

    If the rule for code tags is new to you, then please take the time to review our rules. There aren't many, and they are all important.

    The Read Only attribute is a Windows file system attribute, not an Excel attribute. When you use the xlDialogSaveAs dialog box, you lose control over how this file is saved. You can use SetAttr to turn of the Read Only after the file is saved. With the save method you have used, the active workbook's name is changed, so it is easy to reference it and reset the Windows attributes:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-28-2016
    Location
    Fargo, ND USA
    MS-Off Ver
    10
    Posts
    32

    Re: How do I save a file as non-read only from a read only

    Worked great - Thanks you

+ 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] Save file as read-only
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-16-2015, 11:44 AM
  2. [SOLVED] Checking to see if a file has been opened in Read/Write or Read Only
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:16 AM
  3. Read-only file on server. How many people can read at once?
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 12:10 AM
  4. Using ADO to read closed file does not read formulas
    By treyr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-09-2010, 12:26 PM
  5. [SOLVED] How can I save an Excel file which says it's a Read only to a CD?
    By Cindy Who in forum Excel General
    Replies: 2
    Last Post: 03-24-2006, 07:19 PM
  6. How can a file be converted from Read-Only to Read/Write
    By Jim in Apopka in forum Excel General
    Replies: 2
    Last Post: 11-19-2005, 01:00 PM
  7. [SOLVED] Trying to save a .XLA file that's Read Only
    By silkworm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2005, 09:25 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