This documentation is archived and is not being maintained.

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

  1. To open a write-protected file, change the write-protection attribute of the file.

  2. Make sure that another process has not locked the file, and wait to open the file until the other process releases it.

  3. To access the registry, check that your user permissions include this type of registry access.

See Also

Show: