Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Note: This article has done its job, and will be retiring soon. To prevent "Page not found" woes, we're removing links we know about. If you've created links to this page, please remove them, and together we'll keep the web connected.

Visual Basic for Applications (VBA) in Office for Mac 2011 is a powerful, easy to use programming tool, which helps you automate repetitive tasks that you may often perform in your favorite Office app. For example, have you ever changed the style of a paragraph at the top of each page in Word, but not once, but tens of times or more? With VBA, almost any format or editing change that you do by hand can be done in VBA.

This guide will help you create your first Office automated VBA script, also known as a macro. It’ll also walk you through the code that you create, and point you to additional resources to help you go deeper with VBA.

Let’s begin by creating our first macro with the Macro Recorder.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×