Description
Excel — Spreadsheet Macros: Recording, Adapting Code and Automating Routine Tasks
Automate a repetitive task without being a developer and understand the code you run
- 1 day — 7 h
- In-person or virtual
- Foundation
- Up to 6 participants
Some tasks come back in exactly the same form every week: formatting a data extract, deleting unused columns, building a summary tab. The time spent is real, and sooner or later a manual error slips in. The macro recorder gives a first result, but the code it produces stops working as soon as the file changes.
This 7-hour day is an entry point: record a macro then read the resulting code, discover variables, loops and conditions, correct a recording that is too rigid and trigger the macro from a button. The aim is to automate a simple routine from start to finish.
Learning objectives
- Record a macro and run it from a button or a keyboard shortcut
- Read the code produced by the recorder and identify its instructions
- Declare a variable and write a conditional statement
- Write a loop to process a variable number of rows
- Correct a recorded macro so that it no longer depends on the selection
- Use step-by-step execution to trace the source of an error
What makes this programme different
Programme
1Recording and running
A first automation without writing code
- Macro security settings and workbook save formats
- The macro recorder and choosing the reference mode
- Running a macro from a button, a shortcut and the ribbon
- Organising macros within a workbook
- Limitations of the recorder
2Reading and correcting the code
Understanding what the recorder has written
- The code editor, modules and procedures
- Workbook, worksheet and range objects
- The most common properties and methods
- Removing unnecessary instructions generated by the recording
- Comments and indentation
3Making the macro robust
Variables, conditions, loops and errors
- Declaring and using variables
- Conditional statements
- Loops through the rows of a table
- Dialogue boxes and messages to the user
- Step-by-step execution, breakpoints and error handling
Who is it for
Confident spreadsheet users who face repetitive processing tasks and wish to discover macro programming.
Prerequisites
Regular spreadsheet practice including formulas, absolute references and handling of data lists.
Dates & locations
36 scheduled dates between November 2026 and December 2027. Seats are confirmed in the order enquiries are received.
November 2026
-
11 November 2026 1 day
Abu Dhabi In-person
-
26 November 2026 1 day
Dubai In-person
-
26 November 2026 1 day
Online Virtual classroom
December 2026
-
15 December 2026 1 day
Abu Dhabi In-person
-
29 December 2026 1 day
Dubai In-person
-
29 December 2026 1 day
Online Virtual classroom
January 2027
-
12 January 2027 1 day
Abu Dhabi In-person
-
26 January 2027 1 day
Dubai In-person
-
26 January 2027 1 day
Online Virtual classroom
February 2027
-
2 February 2027 1 day
Dubai In-person
-
2 February 2027 1 day
Online Virtual classroom
-
4 February 2027 1 day
Abu Dhabi In-person
March 2027
-
18 March 2027 1 day
Dubai In-person
-
18 March 2027 1 day
Online Virtual classroom
-
25 March 2027 1 day
Abu Dhabi In-person
April 2027
-
13 April 2027 1 day
Abu Dhabi In-person
-
28 April 2027 1 day
Dubai In-person
-
28 April 2027 1 day
Online Virtual classroom
May 2027
-
12 May 2027 1 day
Dubai In-person
-
12 May 2027 1 day
Online Virtual classroom
-
31 May 2027 1 day
Abu Dhabi In-person
June 2027
-
14 June 2027 1 day
Abu Dhabi In-person
-
29 June 2027 1 day
Dubai In-person
-
29 June 2027 1 day
Online Virtual classroom
September 2027
-
2 September 2027 1 day
Dubai In-person
-
2 September 2027 1 day
Online Virtual classroom
-
20 September 2027 1 day
Abu Dhabi In-person
October 2027
-
12 October 2027 1 day
Abu Dhabi In-person
-
26 October 2027 1 day
Dubai In-person
-
26 October 2027 1 day
Online Virtual classroom
November 2027
-
2 November 2027 1 day
Dubai In-person
-
2 November 2027 1 day
Online Virtual classroom
-
17 November 2027 1 day
Abu Dhabi In-person
December 2027
-
14 December 2027 1 day
Abu Dhabi In-person
-
28 December 2027 1 day
Dubai In-person
-
28 December 2027 1 day
Online Virtual classroom
None of these dates suit you? We open additional sessions on request, and any programme can be run privately for your team.
Practical details
- Before the programme
- Online positioning questionnaire. Your development objectives are shared with the trainer, who tailors the practical case studies to your context.
- Teaching methods
- Theoretical input, workshops and practical case studies. Digital course materials and method sheets provided.
- Assessment
- Multiple-choice tests and role-play exercises. Assessment of learning at the start and end of the programme, with immediate and 60-day follow-up evaluations.
- After the programme
- One year of access to the e-learning platform. Self-assessment of the skills acquired and a 30-day follow-up session with your trainer.
- How to register
- Registration online or on the basis of a quotation.
- Lead time
- 11 working days after confirmation of registration.
- Accessibility
- Accessible to people of determination. Contact our accessibility coordinator to design a suitable solution: contact@mpf-academy.ae
- Start dates
- Rolling intake: in addition to the scheduled sessions, this programme can start on request.

