VBA-Automatically save an open excel file to default location

  Рет қаралды 578

The Data Corner

The Data Corner

Жыл бұрын

In this video, we will create a VBA macro that will save any open excel workbook to a default location with current date and time

Пікірлер: 2
@atefbo6363
@atefbo6363 5 ай бұрын
Thank you for your effort. I have question : what if i want to save + close multiple open excel files without changing the name ?
@theDataCorner
@theDataCorner 5 ай бұрын
Thank you Atef, I appreciate it. Please use below code and let me know if it works for your task, it will save and close all open excel files. If you want me to make a small video explaining the code, let me know as well. Sub SaveAndCloseWorkbooks() Dim wb As Workbook ' Disable display alerts to suppress warnings Application.DisplayAlerts = False ' Loop through all open workbooks For Each wb In Workbooks ' Save changes if the workbook has been modified If wb.Saved = False Then wb.Save End If Next wb ' Close all open workbooks without warnings Workbooks.Close ' Enable display alerts again Application.DisplayAlerts = True End Sub
VBA- AutoSave backup of an open Excel File
4:31
The Data Corner
Рет қаралды 1 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 104 МЛН
How to get the Last Row in VBA(The Right Way!)
15:41
Excel Macro Mastery
Рет қаралды 153 М.
Excel - VBA Refresh All
4:16
Data-Literate
Рет қаралды 756
Next Empty Row Trick in Excel VBA & Macros
10:36
TeachExcel
Рет қаралды 53 М.
Save a File to a Specific location Using a Macro in Excel
7:48
Barb Henderson
Рет қаралды 214 М.
VBA to BROWSE & COPY Data from SELECTED File in Excel
10:00
Leila Gharani
Рет қаралды 323 М.
Excel VBA Macro: List All Files (From a Selected Folder)
8:43
greggowaffles
Рет қаралды 9 М.
VBA-Open Folder Location of an active Excel File
3:55
The Data Corner
Рет қаралды 66
Excel Invoice Template that Adds New Lines Automatically
10:09
TeachExcel
Рет қаралды 44 М.