Question

Using powerpoint VBA, Using the Visual Basic Editor, create a VBA procedure named message_2 that does...

Using powerpoint VBA, Using the Visual Basic Editor, create a VBA procedure named message_2 that does the following:Create a Message Box that meets the following requirements: A Multiline Message Box with the following message: Welcome to PowerPoint! Do you wish to run this Presentation? Contains a Yes and a No button. Contains a Question Mark icon. The No button is the default button. The Message Box title reads "Run Show?". If the user clicks the Yes button, the slide show runs.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

Please find the Procedure code and the screenshots. Code is written for Presentation1.pptm. You will need to change the path to open the presentation 2 (or whatever presentation) appropriately in the following code. Here, it is opening the presentation from path C:\Chegg\Presentation2.pptx.

Please let me know in case of any questions or concerns.

Screenshot:

Code:

Sub message_2()
    Dim intAns As Integer
    intAns = MsgBox("Welcome to PowerPoint! Do you wish to run this Presentation?", vbYesNo + vbQuestion + vbDefaultButton2, "Run Show?")
    Select Case intAns
        Case vbYes
            'When Yes Button is clicked
            Dim powerPnt As Presentation 'Presntation Object
            Set powerPnt = Application.Presentations.Open("C:\Chegg\Presentation2.pptx") 'Open object. Change the path as appropriate for your requirement
            Application.ActivePresentation.Windows(1).WindowState = ppWindowMinimized 'Minimize active window
            powerPnt.Windows(1).WindowState = ppWindowMinimized 'Minimize the ppT slide
            powerPnt.SlideShowSettings.Run   'Run the Presentation
        Case vbNo
            'When No Button is clicked
            End 'End Application
    End Select
End Sub

Add a comment
Know the answer?
Add Answer to:
Using powerpoint VBA, Using the Visual Basic Editor, create a VBA procedure named message_2 that does...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does...

    MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does the following: a. Asks the user for their name (using an Input Box). b. Determines the number of slides in the presentation using the appropriate code. c. Displays a message back to the user (using a Message Box) that contains the name entered and the number of slide in the presentation. The message should be something like this: (Hello Sally, there are 8 slides...

  • Create and call a function Using the Visual Basic Editor: create a VBA procedure named call_function...

    Create and call a function Using the Visual Basic Editor: create a VBA procedure named call_function that does the following: Prompts the user, using two input boxes, for the height and the radius of the base of a cone. Calls a function named cone_volume and passes the two values to it. Receives a value back from the function and displays it in a message to the user. Create a function named cone_volume that does the following: Receives the two values...

  • 1 CREATE A DOCUMENT (USE CHAPTER 20 FOR REFERENCE) 1. Using the Visual Basic Editor, create...

    1 CREATE A DOCUMENT (USE CHAPTER 20 FOR REFERENCE) 1. Using the Visual Basic Editor, create a VBA procedure named doc_create that does the following: a. Creates a new Word document. b. Adds 1 line of text that says “This is my document!” c. Saves the file as myFile.docx d. Closes the document.

  • Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it...

    Microsoft Excel VBA (Visual Basic for Applications) Programming Language Objectives: Create an array and redim it to a size equal to an assigned value of a variable, populate the array with a series of random numbers, output the array to a message box and to a worksheet. Instructions: - Review the variables already declared. You won't need others. - See comments in the code that will act as your guide. Add new code directly after each comment. - Assign a...

  • Using C# Language Develop a Visual C# .NET application that performs a colour control operation. The...

    Using C# Language Develop a Visual C# .NET application that performs a colour control operation. The main form contains a reset button and sets the form's background colour according to the colour values indicated by the colour control objects. Each colour control object is controlled by a corresponding colour control form which provides a progress bar to show the value (in the range 0 to 255) of the corresponding colour control object. The user can click the increase (+) or...

  • Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc....

    Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc. needs a program in which the date and temperature in Celsius degrees of an industry laboratory are recorded and stored in a sequential file. In addition, you can see the recorded data and convert the temperatures in the following units: Fahrenheit, Kelvin and Rankine. In addition, they want to see a linear graph that reflects how the temperature has fluctuated day by day, for...

  • Programming question. Using Visual Studio 2019 C# Windows Form Application (.NET Framework) Please include code for...

    Programming question. Using Visual Studio 2019 C# Windows Form Application (.NET Framework) Please include code for program with ALL conditions met. Conditions to be met: Word Problem A person inherits a large amount of money. The person wants to invest it. He also has to withdraw it annually. How many years will it take him/her to spend all of the investment that earns at a 7% annual interest rate? Note that he/she needs to withdraw $40,000.00 a year. Also there...

  • The following form will be used to determine the sales commission of employees. Using Visual Basic...

    The following form will be used to determine the sales commission of employees. Using Visual Basic Studio, build the form with these features:  The checkbox “Target Met” must be disabled.  The title of the form should appear as “Sales Commissions” Write the code to do the following: After entering the totals sales, the checkbox will automatically be checked if the average sales per month was $1,500 or more. Note: The average sales per month can be calculated by...

  • If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but...

    If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but minor discrepancies may require you to adjust. If you are attempting this assignment using another version of Visual Studio, you can expect differences in the look, feel, and/or step-by-step instructions below and you’ll have to determine the equivalent actions or operations for your version on your own. INTRODUCTION: In this assignment, you will develop some of the logic for, and then work with, the...

  • Program using visual basic.net You will create a very simple two numbers calculator with save options;...

    Program using visual basic.net You will create a very simple two numbers calculator with save options; here is the specifications for the application. Create a form divided vertically in two halves with right and left panels 1- In the left panel you will create the following control, the label or the value of the control will be in "" and the type of the control will in [] a- "First Number" [textbox] b- "Second number" [texbox] c- "Result" [textbox] -...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT