I and others share a multi-user Access application that saves Excel attachments from mail in a Public Folder (to which we all have access, I am the manager) to a scratch file (our personal W:-drive) and then reads the data in the saved spreadsheet into an Access table. This works fine if I do it, but all my colleagues get an Access Denied failure message at the Save AsFile statement (apparently because the previous Answer.xls has been saved as Read Only, and cannot be overwritten).
Any suggestions appreciated
Code:
For Each Item In olMyPublicFolder.Items
For Each olAtmt In Item.Attachments
If Right(olAtmt.FileName, 4) = ".xls" Then
MyFilename = "W:\Answer.xls"
olAtmt.SaveAsFile MyFilename
ReadOneSpreadsheet (MyFilename)
End If
Next olAtmt
Next Item
Any suggestions appreciated