Saving Workbook

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,804
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I'd like to save my workbook from VBA and show a non-modal Form
saying the Save is happening. I think that bits easy, but I'd like
the Form to automatically unload when the Save is complete. The non-model
Form is to prevent anything else happening while the Save is ocurring.

Is it possible to do this and is my logic OK ?

Thanks, ABB
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,029
Nothing can happen while Excel is saving the workbook. So, no need to worry about the form. Maybe, the untested
Code:
UF.show false
WB.Save
UF.hide
I'd like to save my workbook from VBA and show a non-modal Form
saying the Save is happening. I think that bits easy, but I'd like
the Form to automatically unload when the Save is complete. The non-model
Form is to prevent anything else happening while the Save is ocurring.

Is it possible to do this and is my logic OK ?

Thanks, ABB
 
Upvote 0

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,804
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Yes maybe... like to test but I get 'Variable not defined' in WB.Save
I guess you've abbreviated it, but I don't know the correct syntax.
 
Upvote 0

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,804
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
tusharm, thanks! That was much easier than expected and works a treat!</pre>
 
Upvote 0

Forum statistics

Threads
1,191,165
Messages
5,985,034
Members
439,935
Latest member
Monty238

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