VBA if Save Fails then saveas

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
773
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have thisworkbook.save in some of my macros though if save fails I would like to saveas in the same folder....

Same file name but include V2, V3 etc....

What is the best way to do this?
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,977
Office Version
  1. 365
Platform
  1. Windows
why is the code failing?
are you getting an error message?
 
Upvote 0

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
773
Office Version
  1. 365
Platform
  1. Windows
Just "File not Saved" though it's due to failing to upload to SharePoint. It happens now and again
 
Upvote 0

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,977
Office Version
  1. 365
Platform
  1. Windows
Please post the ONE line of code that currently Saves the workbook (sometimes!!)
- I need to see how it is constructed to understand how to amend it for you

thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,195,722
Messages
6,011,309
Members
441,604
Latest member
CraigThompson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top