#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default excel 2007

i have a script for saving a file to 2 locations, 1st location saves in
excell2007 macro enabled, 2nd location saves in excel2003 compatable version,
i have put a WriteResPassword on 2003 version so its read only...
the trouble i have is when i run the script again it cant save to the 2nd
location as is protected...
script is below any ideas how to solve the issue so it will save over the
password with out falling over

Application.DisplayAlerts = False
ChDir "O:\Distribution\Loadplan\1delsch"
ActiveWorkbook.SaveAs Filename:= _
"O:\Distribution\Loadplan\1delsch\delsch.xlsm" , FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, ReadOnlyRecommended:=False,
CreateBackup:=False
Application.DisplayAlerts = True

ChDir "P:\Distribution\Schedule\Bracknell"
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:= _
"P:\Distribution\Schedule\Bracknell\Newdelsch.xls" ,
FileFormat:=xlExcel8, _
Password:="", WriteResPassword:="260959",
ReadOnlyRecommended:=False, _
CreateBackup:=False
Application.DisplayAlerts = True
ActiveWindow.Close
Reply
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 2007 Tgrover Excel Discussion (Misc queries) 8 April 12th 07 04:43 PM
In Excel 2007 is there a way... pcor New Users to Excel 5 March 2nd 07 05:52 PM
Problems with my links to an excel 2007 file from a word 2007 file sc Links and Linking in Excel 0 February 21st 07 10:12 AM
excel 2007 Katy Excel Discussion (Misc queries) 3 February 11th 07 04:36 PM
Office 2007 Pro Plus 2007 (Beta) - getting small red and green arr Bdhooper1 Excel Discussion (Misc queries) 1 July 19th 06 11:39 PM


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

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

About Us

"It's about Microsoft Excel"