Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to step through all of the files in a directory, update them, and
save. If a file is open (another user), the code can assign a new name and saveAs. How can I tell if it opens as readonly? Multiuserediting property doesn't work, this is not a shared list. The following doesn't work, it puts up a dialog asking the user whether to replace: On Error Resume Next ActiveWorkbook.Save If Err.Number = 1004 Then strPathFile = Left(strPathFile, Len(strPathFile) - 4) strPathFile = strPathFile & "XXX.xls" ActiveWorkbook.SaveAs Filename:=strPathFile Err.Clear End If It doesn't get past the .save step. I want this to run without user interaction. Thanks for any suggestions |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel file opens Read-Only for different users...stop! | Excel Discussion (Misc queries) | |||
.xlsx file opens as read-only | Excel Discussion (Misc queries) | |||
Linked file always opens as read-only | Excel Discussion (Misc queries) | |||
Read only file opens | Excel Discussion (Misc queries) | |||
Hyperlink in Excel opens the right program, but can't read file. | Excel Discussion (Misc queries) |