S
Satindra Kumar Sinha
FileSaveAs method of VBA pop-up a message box with button "OK" and "Cancel"
(Having text "A file with this name already exists. To replace the existing
file, click OK. To type a different name for the file, click Cancel.") when a
file with the name to be saved is already exists at that path.
When I click "Cancel" button it throws a error message "An unexpected error
occurred with the method."
Line of code written for FileSaveAs is:
FileSaveAs sFinalFullPath, pjMPP
Here "sFinalFullPath" is a variable.
Could someone help me in fixing this issue. A quick response will help me a
lot.
Thanks,
Satindra
(Having text "A file with this name already exists. To replace the existing
file, click OK. To type a different name for the file, click Cancel.") when a
file with the name to be saved is already exists at that path.
When I click "Cancel" button it throws a error message "An unexpected error
occurred with the method."
Line of code written for FileSaveAs is:
FileSaveAs sFinalFullPath, pjMPP
Here "sFinalFullPath" is a variable.
Could someone help me in fixing this issue. A quick response will help me a
lot.
Thanks,
Satindra