Excel - Work with macros Tutorial
In this video, you will learn how to work with macros in Microsoft 365. The video covers the basics of macros and demonstrates how to create and use them in various Office applications like Word, Excel, and PowerPoint.
This will help you automate repetitive tasks and increase your productivity with Microsoft 365.
- 4:40
- 4403 views
-
Teams - Do I share with OneDrive, SharePoint, or TEAMS?
- 2:24
- Viewed 3870 times
-
SharePoint (Classic Sites) - Understanding the different types and roles of team sites in SharePoint
- 3:05
- Viewed 3517 times
-
SharePoint (Classic Sites) - Sharing a folder or document with someone outside the company
- 3:44
- Viewed 3686 times
-
SharePoint (Classic Sites) - Restricting a document to read-only mode (Extract a document)
- 2:05
- Viewed 3410 times
-
Societal Implications of Generative AI
- 5:58
- Viewed 2315 times
-
Outlook - Easily Sort Your Mails
- 01:38
- Viewed 464 times
-
Outlook - Use Categories
- 02:51
- Viewed 543 times
-
Remove a watermark
- 2:20
- Viewed 35247 times
-
Activate the features of Teams Premium
- 3:48
- Viewed 18131 times
-
Change the default font for your emails
- 1:09
- Viewed 16633 times
-
How to recall or replace a sent email in Outlook Web
- 0:53
- Viewed 16551 times
-
Collapsible headings
- 3:03
- Viewed 16010 times
-
How do I prevent the transfer of an email?
- 2:07
- Viewed 14064 times
-
Create automatic reminders
- 4:10
- Viewed 11831 times
-
Protect a document shared by password
- 1:41
- Viewed 11385 times
-
Morph transition
- 0:43
- Viewed 10587 times
-
Creating a Report
- 2:54
- Viewed 9624 times
-
Remove a watermark
- 2:20
- Viewed 35247 times
-
Activate the features of Teams Premium
- 3:48
- Viewed 18131 times
-
Change the default font for your emails
- 1:09
- Viewed 16633 times
-
How to recall or replace a sent email in Outlook Web
- 0:53
- Viewed 16551 times
-
Collapsible headings
- 3:03
- Viewed 16010 times
-
How do I prevent the transfer of an email?
- 2:07
- Viewed 14064 times
-
Create automatic reminders
- 4:10
- Viewed 11831 times
-
Protect a document shared by password
- 1:41
- Viewed 11385 times
-
Morph transition
- 0:43
- Viewed 10587 times
-
Creating a Report
- 2:54
- Viewed 9624 times
-
Create your own GPTs
- 03:17
- Viewed 38 times
-
Create a project in ChatGPT
- 02:26
- Viewed 35 times
-
Interact with the AI through voice mode
- 02:42
- Viewed 41 times
-
Work with your documentation resources using ChatGPT
- 02:16
- Viewed 36 times
-
Generate your images and visuals with DALL·E
- 02:10
- Viewed 40 times
-
Create high-quality written content
- 02:18
- Viewed 38 times
-
Explore ChatGPT’s generative options
- 03:11
- Viewed 41 times
-
Personalize your workspace
- 01:51
- Viewed 42 times
-
Discover ChatGPT
- 01:47
- Viewed 37 times
-
Agents in Copilot Chat
- 01:55
- Viewed 57 times
Objectifs :
Learn how to automate repetitive tasks in Excel by recording macros, including the importance of using relative references for effective macro functionality.
Chapitres :
-
Introduction to Macros in Excel
In this section, we will explore how to automate repetitive tasks in Excel using macros. Macros allow you to perform a series of actions with a single click, significantly improving efficiency. -
Setting Up the Macro Recorder
To begin, ensure that the macro recorder is available on the ribbon. Access this by clicking the File tab, selecting Options, and then customizing the ribbon. In the code group, you will find the 'Record Macro' button along with other related options. -
Recording a Simple Macro
We will record a macro to automate an auto-fill operation. Start by typing 'Sunday' in a cell. Right-click the cell and drag it to the right. As you drag, a tooltip will display the values that will fill each cell, progressing through to 'Saturday'. Release the right mouse button and select 'Fill Series' to complete the action. After recording, clear the cells and name the macro 'FillDays'. Remember, macro names cannot contain spaces. -
Testing the Recorded Macro
After stopping the recording, clear the filled cells and select 'Day One' to test the macro. Open the macro dialog box and click 'Run'. If the macro fills the wrong cells, it indicates that the macro recorder was set to absolute references by default. -
Understanding Relative References
The failure of the macro to fill the correct cells occurred because the macro recorder was not set to use relative references. To fix this, clear the cells, enable 'Use Relative References', and start recording a new macro named 'FillDaysRelative'. After typing 'Sunday' and performing the auto-fill, stop the recording. -
Successful Execution of the Relative Macro
Clear the cells again and switch to a different starting cell, such as C7. Run the 'FillDaysRelative' macro. This time, it should work perfectly, demonstrating the importance of using relative references for macros. -
Conclusion and Next Steps
In the next video, we will learn how to manually rewrite the 'FillDaysRelative' macro using the Visual Basic Editor in Excel. Understanding how to create and modify macros will enhance your ability to automate tasks effectively.
FAQ :
What is a macro in Excel?
A macro in Excel is a sequence of instructions that automate repetitive tasks, allowing users to perform complex actions with a single click.
How do I record a macro in Excel?
To record a macro in Excel, go to the 'View' tab, click on 'Macros', and select 'Record Macro'. Perform the actions you want to automate, then click 'Stop Recording' when finished.
What are relative references in Excel macros?
Relative references allow a macro to adjust its actions based on the current position of the active cell, making it more flexible and applicable to different locations in the worksheet.
Why did my macro not work as expected?
If your macro did not work as expected, it may be due to not using relative references. Ensure that the 'Use Relative References' option is enabled before recording the macro.
Can I edit a macro after recording it?
Yes, you can edit a macro after recording it by using the Visual Basic Editor, where you can modify the VBA code to customize its functionality.
Quelques cas d'usages :
Automating Data Entry
In a sales department, a user can create a macro to automate the entry of daily sales data into a spreadsheet, saving time and reducing errors.
Generating Weekly Reports
A project manager can use a macro to automatically generate weekly status reports by filling in predefined templates with data from various sources.
Creating Custom Schedules
An HR professional can record a macro to fill in employee schedules based on a standard template, allowing for quick adjustments and updates.
Data Cleanup
A data analyst can use a macro to automate the process of cleaning up data sets, such as removing duplicates or formatting cells consistently.
Batch Processing of Files
A finance team can create a macro to batch process multiple Excel files, applying the same calculations or formatting across all documents efficiently.
Glossaire :
Macro
A macro is a set of instructions that automate repetitive tasks in Excel. It allows users to perform complex sequences of actions with a single command.
Macro Recorder
The macro recorder is a built-in tool in Excel that allows users to record their actions and create a macro without needing to write any code.
Relative References
Relative references in Excel macros allow the macro to adapt to the position of the active cell. This means that the macro will perform actions based on the current cell's location rather than fixed cell addresses.
Auto Fill
Auto Fill is a feature in Excel that allows users to quickly fill a series of cells with data based on a pattern, such as days of the week.
Visual Basic Editor
The Visual Basic Editor (VBE) is a tool in Excel that allows users to write and edit VBA (Visual Basic for Applications) code for more advanced macro creation and customization.
Cette formation pourrait intéresser votre entreprise ?
Mandarine Academy vous offre la possibilité d'obtenir des catalogues complets et actualisés, réalisés par nos formateurs experts dans différents domaines pour votre entreprise