May 30, 2002 #1 SgtPepps IS-IT--Management May 1, 2002 109 GB Is there a way of having an xls open with read only access and then have the rights changed to write access with vba?
Is there a way of having an xls open with read only access and then have the rights changed to write access with vba?
May 30, 2002 #2 Loomah Technical User Mar 4, 2002 1,911 IE Hellooooooo Sarge I was about to give up on this as not possible or leave it to someone wot is clevva. But then I came up with this! Sub WriteAccess() ThisWorkbook.ChangeFileAccess xlReadWrite End Sub It will ask you if you want to open your book as read onlly in the same way that happens when you open the file in the first place. ;-) If a man says something and there are no women there to hear him, is he still wrong? Upvote 0 Downvote
Hellooooooo Sarge I was about to give up on this as not possible or leave it to someone wot is clevva. But then I came up with this! Sub WriteAccess() ThisWorkbook.ChangeFileAccess xlReadWrite End Sub It will ask you if you want to open your book as read onlly in the same way that happens when you open the file in the first place. ;-) If a man says something and there are no women there to hear him, is he still wrong?
May 30, 2002 Thread starter #3 SgtPepps IS-IT--Management May 1, 2002 109 GB simple as that, cheers! Upvote 0 Downvote