How to write a script for PowerPoint

To write a script for PowerPoint, follow these steps:

1. Launch MS PowerPoint and create a new presentation.

2. Select and click on the “View” from the main menu then tab and select “Slide Master”.

3. In the “Slide Master” view, click on the “Insert” tab and select “Code”.

4. A new slide will be inserted with a code editor.

5. Type your code into the editor.

6. Click on the “Run” button to run your code.

7. The output of your code will be displayed on the slide.

Here is an example of a simple script that you can run in PowerPoint:

Sub HelloWorld()
MsgBox “Hello World!”
End Sub

(This script will display a message box with the text “Hello World!” when you run it.)

To write a macro in Google Sheets, follow these steps:

1. Launch or load Google Sheets and make sure to create a new spreadsheet.

2. Click on the “Tools” menu and select “Script editor”.

3. A new window will open with a code editor.

4. Type your code into the editor.

5. Click on the “Run” button to run your code.

6. The output of your code will be displayed in the spreadsheet.

Here is an example of a simple macro that you can run in Google Sheets:

function helloWorld() {
SpreadsheetApp.getUi().alert(‘Hello, world!’);
}

This macro will display an alert box with the text “Hello, world!” when you run it.

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading