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 how to overwrite a write reserved file?

I am running a macro to save a spreadsheet to a common drive. Th
spreadsheet is write protected via a password.

When I go to update the file the macro returns an error as the file i
write reserved. Is there someway I can override this so the ne
version will overwrite the old one.

This is the code I am using to save it


Code
-------------------

ChDir "G:\COMMON\FILES"
ActiveWorkbook.SaveAs FileName:= _
"G:\COMMON\FILES\myfile.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="mypass", ReadOnlyRecommended:=True, _
CreateBackup:=False

-------------------


--
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
Excel File Overwrite GradAsh10 Excel Discussion (Misc queries) 1 January 18th 10 04:13 PM
accidental file overwrite drumjam Excel Discussion (Misc queries) 1 December 31st 08 07:37 AM
accidentally click YES to overwrite an existing file mtrent Excel Discussion (Misc queries) 2 March 30th 06 07:01 PM
retrieving of overwrite excel file? PLS! need help. Excel Discussion (Misc queries) 1 October 10th 05 10:34 AM
File is "Reserved" Gordon New Users to Excel 1 September 14th 05 07:48 PM


All times are GMT +1. The time now is 08:32 AM.

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"