Consulting

Results 1 to 4 of 4

Thread: Solved: write reserved

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: write reserved

    Hi,

    I have a workbook that has a password to modify on it.

    I recorded a macro that re-saves it over the existing file and I click "yes" when it says file xyz already exists etc etc

    However when I put this recorded macro into my code it falls over at this point and says the file is write reserved even though the recorded macro passes the write reserved pasword.

    I added displaywarnings = false but it still falls over at this point

    Any help?

  2. #2
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,005
    Location
    Phil its [VBA]Application.DisplayAlerts=False [/VBA]but can you supply the code you are using?
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location
    Sorry, I meant diplayalerts

    The code is basically a recorded macro if you have a file open with a password to modify password open then save as the save filename and when it asks you to replace it say yes.

    I then paste this into my code and it breaks!!

  4. #4
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,005
    Location
    Phil i ask you again....can you supply the code you are working with, it's almost impossible to help without seeing what you are currently doing!
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

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