LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting a read only file?

Is there a way, in macro, that I can delete a read only file or chang
it to writeable?

Reason I ask is that I have a file I want my users to access. However
My macro updates it overnight and I dont want them using a witeabl
version.

So What I have my macro do is:

Open a writeable local file, change it and save it to a networ
location. This would mean the file needs to be overwritten.

However, when it gets to the bit in the macro to overwrite the file
the macro fails with an error saying file cannot be overwritten.

I therefore need a way to either delete the read only file or make i
writeable.

I tried Kill filename and this did not work.

Any ideas

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
XCEL FILE REC'D AS READ ONLY -- HOW TO NOT BE "READ ONLY" billybob Excel Discussion (Misc queries) 1 February 13th 06 03:14 AM
In EXCEL, access denied when deleting read only Richard G. Excel Discussion (Misc queries) 0 December 31st 05 05:54 PM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM


All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"