VBA/Macro Course - 3 Ways to Create New Workbooks & Save and Close Them Using a Macro

  Рет қаралды 39,026

TeachExcel

TeachExcel

3 жыл бұрын

View the Full VBA/Macro Course: www.teachexcel.com/vba-course...
Downloadable File: Available in the full course.
How to create new workbooks using VBA and Macros in Excel and then the proper way to reference those new workbooks so you can do something with them, including saving them to a new file and closing them.
(New Non-VBA tutorials are coming soon, I promise!)
This tutorial specifically covers:
- How to export a worksheet into a new workbook using VBA.
- How to move a worksheet into its own workbook using VBA.
- How to create a new blank workbook using VBA.
- How to save new workbooks using VBA.
- How to close new workbooks using VBA.
- How to properly reference new workbooks using VBA.
This is a smaller version of the tutorial for my VBA course on TeachExcel.com and I hope you find it helpful :)
Excel Courses:
- VBA/Macro Course: www.teachexcel.com/vba-course...
- Building Professional Forms: www.teachexcel.com/premium-co...
TeachExcel.com
#msexcel #vba #tutorial

Пікірлер: 20
@hw1729
@hw1729 2 жыл бұрын
Such a good video, so clear and nicely explained
@sugunalakshmanan2196
@sugunalakshmanan2196 Жыл бұрын
Really nice. You have explained so clearly
@darrylmorgan
@darrylmorgan 3 жыл бұрын
The Power Of A Few Lines Of VBA Code!!Cool Tutorial...Thank You Sir :)
@TeachExcel
@TeachExcel 3 жыл бұрын
You're very welcome Darryl! I am really loving showing how simple things can be with VBA, though, of course, it gets complex fast, but things like creating workbooks is easier than many think. :)
@MrDavehall19
@MrDavehall19 2 жыл бұрын
This is so useful thank you, Is it possible to only copy certain rows or even cells from a row into the new workbook?
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Nice tips. VBA is so useful and fun. Thanks for sharing :)) Thumbs up!!
@TeachExcel
@TeachExcel 3 жыл бұрын
Thanks Wayne! Couldn't agree more! Glad you think so :)
@Mukdeni
@Mukdeni 3 жыл бұрын
This is so useful. Thank you!
@TeachExcel
@TeachExcel 3 жыл бұрын
Glad you think so! You're very welcome Justin!)
@amargurjar750
@amargurjar750 2 жыл бұрын
This is really helpful. You made my day
@TeachExcel
@TeachExcel 2 жыл бұрын
I'm really glad to hear it :)
@matthewhealey8302
@matthewhealey8302 2 жыл бұрын
This is great, thank you. How would I adjust the code to copy across more than one worksheet?
@TeachExcel
@TeachExcel 2 жыл бұрын
Put an Array("Sheet1","Sheet2") into the copy method - I haven't seen this specific code for a while, but that should do the trick. If it doesn't get you all the way there, just ask in our forum and include any code you already have and it will be easier to help :) TeachExcel's Excel Forum: www.teachexcel.com/talk/microsoft-office?src=yt_comment_reply
@Kaiser06202020202020
@Kaiser06202020202020 Жыл бұрын
How would i copy multiple sheets to a new workbook? what would I adjust the Worksheets("sales1").copy code to?
@nadermounir8228
@nadermounir8228 3 жыл бұрын
When do u think the course will be available ?
@TeachExcel
@TeachExcel 3 жыл бұрын
Well I don't want to give a firm date, but I do believe that I now have everything that remains to be done planned out, with the exception of the specifics of the practical tutorials. The core 100 tutorials are finished and uploaded though and I included a course status and update in this weeks newsletter, but if you aren't signed up for that, you can just click the link to the Blog on teachexcel.com and the latest post talks about it.
@kthlnmbr
@kthlnmbr 2 жыл бұрын
Hello thanks for the tutorial but just want to ask, what is the code for this scenario. I want to create a new workbook with the active sheet?. I have sheets from January - december if I want to create a new workbook for The active sheet February?
@kthlnmbr
@kthlnmbr 2 жыл бұрын
Okay got it. It should be Activesheet.Copy
@KrishnakumarP5697
@KrishnakumarP5697 Жыл бұрын
Hi could you please help on how to move sheet 1 and sheet 2 simultaneously to another workbook since as you mentioned that array is not working. Thanks for this wonderful video❤
VLOOKUP() Using Macros in Excel - Worksheet Functions for VBA
9:45
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
00:37
Levsob
Рет қаралды 21 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 17 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4 МЛН
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 2,1 МЛН
Copy Sheet into a New Workbook and Save it & Current Date
13:04
My Excel Life
Рет қаралды 10 М.
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 272 М.
VBA Macro to Copy Data to Another Workbook
10:30
Excel Destination
Рет қаралды 68 М.
Excel VBA: Opening, Saving and Closing Workbooks with VBA
13:30
Computergaga
Рет қаралды 21 М.
Save a File to a Specific location Using a Macro in Excel
7:48
Barb Henderson
Рет қаралды 214 М.
Personal Macro Workbook - Reuse Macros in Any Workbook in Excel
8:29
Excel VBA: Copy Data Between ANY Two Sheets
12:56
Excel Macro Mastery
Рет қаралды 117 М.
Excel VBA Save File as Cell Value
14:12
The Excel Cave
Рет қаралды 23 М.
Excel Macro Class 1 - Getting Started Programming Macros
15:47
TeachExcel
Рет қаралды 623 М.
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
00:37
Levsob
Рет қаралды 21 МЛН