
11-01-2004, 05:25 AM
|
|
Senior Contributor
|
|
Join Date: May 2003
Location: London
Posts: 802
|
|
Saving a workbook with VBA.....
|
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.....
Code:
Set xlWb = XLapp.Workbooks.Add
xlWb.SaveAs FileName:=FileLocation & DirName & (Left(DirName, Len(DirName) - 1)), ConflictResolution:=xlLocalSessionChanges
any ideas please
|
|