Excel VBA Macro: Access Your Macro From Any Workbook (PERSONAL.XLSB)

  Рет қаралды 1,336

greggowaffles

greggowaffles

Жыл бұрын

Excel VBA Macro: Access Your Macro From Any Workbook (PERSONAL.XLSB)
💥Subscribe: / @greggowaffles
Code:
Sub worksheet_sizes_w_msgbox()
Dim temp_book As String
Dim ws As Worksheet
Dim message As String
Application.ScreenUpdating = False
temp_book = ThisWorkbook.Path & "\Temp.xls"
For Each ws In ActiveWorkbook.Worksheets
ws.Copy
ActiveWorkbook.SaveAs temp_book
ActiveWorkbook.Close savechanges:=False
message = message & ws.Name & ": " & _
FileLen(temp_book) / 1000 & " KB" & vbNewLine
Kill temp_book
Next
Application.ScreenUpdating = True
MsgBox message
End Sub
#excelmacro #excelvba

Пікірлер: 6
@kabar_baik
@kabar_baik 6 ай бұрын
How remove it?
@alexrosen8762
@alexrosen8762 Жыл бұрын
Your tutorials are fun, easy to understand and always connected to real world scenarios. Keep up the good work
@greggowaffles
@greggowaffles Жыл бұрын
Wow! Appreciate you! Thanks a lot!!
@greggowaffles
@greggowaffles Жыл бұрын
It is ok if I paraphrase what you said in my about me section? I feel like it encompasses everything my channel is about
@alexrosen8762
@alexrosen8762 Жыл бұрын
@@greggowaffles Sure! I also want to seize the opportunity to thank you cause we (the financial team) have used the solution in your tutorial to automate part of our budget and forecast processes 🙏
@greggowaffles
@greggowaffles Жыл бұрын
That’s awesome! Thank you so much 🙏
Excel VBA: The Magic of the Worksheet Change Event
14:24
Excel Macro Mastery
Рет қаралды 71 М.
Personal Macro Workbook - Reuse Macros in Any Workbook in Excel
8:29
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 82 МЛН
How to Get List of File Names in a Folder using Excel
5:40
Excel Weez
Рет қаралды 6 М.
How to get the Last Row in VBA(The Right Way!)
15:41
Excel Macro Mastery
Рет қаралды 154 М.
Excel - Personal Macro Workbook - what it is and how to create and use it
4:45
How to Create & Use Excel Macros (Real world example)
10:09
Leila Gharani
Рет қаралды 1,7 МЛН
How To Create Vba Code Modules In Excel
11:19
Excel Campus - Jon
Рет қаралды 137 М.
Excel VBA to Save Data to Another Workbook
13:03
TeachExcel
Рет қаралды 63 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН