Saving Workbook

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,835
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
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
tusharm, thanks! That was much easier than expected and works a treat!</pre>
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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
Back
Top