Permission denied (Visual Basic)
An attempt was made to write to a write-protected disk or to access a locked file.
To correct this error
To open a write-protected file, change the write-protection attribute of the file.
Make sure that another process has not locked the file, and wait to open the file until the other process releases it.
To access the registry, check that your user permissions include this type of registry access.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for