>I don't know of a way to change this programmatically,
Code like the following will set or clear the read-only flag for a
file.
Dim FName As String
FName = "C:\DirTree\Readme.txt"
' set read only flag
SetAttr FName, vbNormal + vbReadOnly
' clear read only flag
SetAttr FName, vbNormal
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
On Tue, 14 Oct 2008 08:21:02 -0700, Barb Reinhardt
<(E-Mail Removed)> wrote:
>I'm thinking that the file is set up with an attribute of READ ONLY. You
>can find this by right clicking on the file name and selecting PROPERTIES.
>
>I don't know of a way to change this programmatically, but I've never looked
>into it either. Maybe someone else can assist.