Excel VBA Objects: Worksheet Object

preview_player
Показать описание

Welcome to the Excel VBA Objects Series. In this video we'll see how to use with the Worksheet object in Excel VBA. We can use properties and methods of the Worksheet object to add, copy, move, or delete worksheets, to change the name, tab color and other properties, of the worksheet, or to hide or protect a worksheet. We can also use Worksheet events to run a macro when the a worksheet is selected, or when the selection or value of a cell changes, etc. We will see all that in this video.

The following videos in the series are going to focus on other Excel VBA objects individually. Among these we will see the the WorksheetFunction object, the Range object, the Shape object, and the Chart object.

And yet, if you want more, you can find various Excel templates, dashboards, and applications of different nature in the other blogs of the Excel Macro Mania saga:
Рекомендации по теме
Комментарии
Автор

You're videos are BY FAR the best, most helpful VBA tutorials I have ever seen. You are a great teacher, and thank you so much for everything you've made!

TheJailProductions
Автор

Thank you, I am learning so much from you!
Here is my question today.
Scenario:
I have the same data, every month, on the same days. There are 5 columns A-E.
The dates in column B never change, just the months.
This is my code to COPY & PASTE from sheet1 to sheet2 in the same workbook.

Worksheets("Jan '23").Range("A1:E11").Copy Worksheets("Feb '23").Range("A1")

What I need is the code to change the month on sheet2, and the following sheets after it's pasted.
I hope this makes sense and you have a simple solution.

bejai