
Executable code
'VBA procedure
Sub doc_create()
'Declare the needed variables
Dim wordObject
Dim docObject
Dim selectionObject
'Create a word application
Set wordObject = CreateObject("Word.Application")
'Add document
Set docObject = wordObject.Documents.Add
'Set visibility
wordObject.Visible = True
'Word selection
Set selectionObject = wordObject.Selection
'Write this in word selection
selectionObject.TypeText ("This is my document")
'Save the document
docObject.SaveAs ("D:\myFile.docx")
'Close the document
docObject.Close
'End of VBA procedure
End Sub
1 CREATE A DOCUMENT (USE CHAPTER 20 FOR REFERENCE) 1. Using the Visual Basic Editor, create...
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...
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...
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...
PLEASE USE VISUAL BASIC* BY VISUAL STUDIO.
Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...
Exercise 1: Create a file by using any word processing program or text editor. Write an application that displays the file's name, size, and time of last modification. Save the file as FileStatistics.java. Exercise 2: Create a file that contains your favorite movie quote. Use a text editor, such as Notepad, and save the file as Quote.txt. Copy the file contents and paste them into a word processing program, such as Word. Save the file as Quote.doc. Write an application...
Create a database in visual basic using sql server to use bound text boxes and combo boxes Please show step by step with photos
C#: Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write console application that displays the sizes of the two files as well as the ratio of their sizes to each other. To discover a file's size, you can create a System.IO.FileInfo object using a statement such as...
Visual Studio Code C#
Well Document everyline saying what the code
does.
Include designer code and .cscode
Extra 6-1 Create a simple calculator In this exercise, you'l1 create a form that accepts two operands and an operator from the user and then performs the requested operation. Simple Calculator Operand 1: 86 Operator Operand 2 11.11 Resut 7.7408 1. Start a new project named SimpleCalculator in the Extra Exercises Chapter 06SimpleCalculator directory 2. Add labels, text boxes, and buttons to the...
JAVA Primitive Editor The primary goal of the assignment is to develop a Java based primitive editor. We all know what an editor of a text file is. Notepad, Wordpad, TextWrangler, Pages, and Word are all text editors, where you can type text, correct the text in various places by moving the cursor to the right place and making changes. The biggest advantage with these editors is that you can see the text and visually see the edits you are...
JAVA Primitive Editor (Please help, I am stuck on this assignment which is worth a lot of points. Make sure that the program works because I had someone answer this incorrectly!) The primary goal of the assignment is to develop a Java based primitive editor. We all know what an editor of a text file is. Notepad, Wordpad, TextWrangler, Pages, and Word are all text editors, where you can type text, correct the text in various places by moving the...