S
Snoopy
Hey guys
EXCEL-VBA Problem
When using
ActiveWorkbook.SaveAs Range("x1").Value
ActiveWorkbook.Close
- its ok when the file/filename specified in range X1 not exists, but
if the file allready exist,a standard windows messageboard "Replace
file? "YES" "NO" "EXIT appears.
When I choose "YES" the macro works and the file is replaced.
When I choose "NO" or "EXIT" my macro crashes.
How can I make my macro by-pass this and just abort whithout crashing?
Hopefully regards
Snoopy
EXCEL-VBA Problem
When using
ActiveWorkbook.SaveAs Range("x1").Value
ActiveWorkbook.Close
- its ok when the file/filename specified in range X1 not exists, but
if the file allready exist,a standard windows messageboard "Replace
file? "YES" "NO" "EXIT appears.
When I choose "YES" the macro works and the file is replaced.
When I choose "NO" or "EXIT" my macro crashes.
How can I make my macro by-pass this and just abort whithout crashing?
Hopefully regards
Snoopy