From the course: Excel: Learning VBA
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Manage workbooks with VBA - Microsoft Excel Tutorial
From the course: Excel: Learning VBA
Manage workbooks with VBA
- [Instructor] Just as you can add, delete and rename worksheets, you can do the same with your workbooks. You can also save them, either under the same name or a different one. In this movie I will show you how to perform those tasks using Excel VBA. My sample file is 05_08_Workbooks, and you can find it in the chapter five folder of the Exercise Files collection. This workbook does contain some data on its single worksheet, but I'm actually going to be working in Excel VBA with the workbook as a whole. So I'll press alt + F11 to move to the Visual Basic Editor, and I've already created a code module to work in. I'll call my code module Sub WBK Test, and that's just short for workbook test, it isn't anything that you have to remember. And open and close parenthesis. And then I will press enter and give myself a number of blank lines to work with. Let's say that I want to open a workbook. To do that, I will use the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Write a value to a cell4m 29s
-
(Locked)
Cut, copy, and paste cell data6m 51s
-
(Locked)
Find values in cells5m 7s
-
(Locked)
Refer to cells using the OFFSET property5m 1s
-
(Locked)
Concatenate text strings4m 4s
-
(Locked)
Return part of a string6m 15s
-
(Locked)
Manage worksheets with VBA8m 30s
-
(Locked)
Manage workbooks with VBA6m 41s
-
(Locked)
Challenge: Manage workbook elements and data in VBA2m 53s
-
(Locked)
Solution: Manage workbook elements and data in VBA3m 8s
-
(Locked)
-
-
-