Create Macros in Microsoft Word
How to create a macro in Microsoft Word? I want to learn how to do things in my Word document with VBScript code.
Creating a new macro in Microsoft Word can be done with these steps:
1. Click "Developer" > "Macros".
You see the macros management screen.
2. Enter "Hello" as the new macro name and click "Create" button. You see the "Microsoft Visual Basic for Applications" screen.
3. Enter the following code in the Code area:
Sub Hello() ok = MsgBox("Hello World!", vbOKOnly) End Sub
4. Click "Run" icon to test the code. Then close the Visual Basic screen.
You new macro "Hello" is ready to run in any document.
2016-06-25, 2167👍, 0💬
What browser to use to cast Website and video to Chromecast devices on my iPhone and iPad? On your i...
How to set column to be AUTO_INCREMENT in MySQL? And how to set its start value and increment value?...
How to add a new slide master in PowerPoint? I have 2 slide masters in the current template. They co...
How to log in to Microsoft Teams with a Web browser? I know that my company is using Microsoft Teams...
What is Microsoft Teams? Microsoft Teams is a Microsoft cloud service that combines workplace chat, ...