KnooKie
11-01-2004, 05:25 AM
i am wanting to save a workbook which i can do fine but the part i am having trouble with is if the workbook already exists. If it does exist i want to overwrite it without the popup 'Do you want to overwrite' message coming up.
i thought the following might work but the popup still seems to appear.....
Set xlWb = XLapp.Workbooks.Add
xlWb.SaveAs FileName:=FileLocation & DirName & (Left(DirName, Len(DirName) - 1)), ConflictResolution:=xlLocalSessionChanges
any ideas please
i thought the following might work but the popup still seems to appear.....
Set xlWb = XLapp.Workbooks.Add
xlWb.SaveAs FileName:=FileLocation & DirName & (Left(DirName, Len(DirName) - 1)), ConflictResolution:=xlLocalSessionChanges
any ideas please