View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
jim hardwick[_2_] jim hardwick[_2_] is offline
external usenet poster
 
Posts: 6
Default macro to save to network

hello,

I have a problem saving and excel workbook. I want the workbook to save to
several network locations without prompting to replace which I have done as
per below;

Application.DisplayAlerts = False

ActiveWorkbook.SaveAs Filename:= _
"\\Stevebrant\SharedDocs\Draught.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

But if the networked computer is offline the macro fails - can I get the
macro to only save if the computer is turned on or to continue regardless?

Help me please!!