Question: In your new Word Document, Launch Visual Basic. Insert a New Module, then type Option Explicit - 1) Insert a Procedure name VBAHello() that prints

In your new Word Document, Launch Visual Basic. Insert a New Module, then type Option Explicit -

1) Insert a Procedure name VBAHello() that prints Hello World to the screen

2) Insert a Procedure name VBAName() that ask the user for their name and greets them with their name.

3) Insert a Procedure name VBAAliceBob() that ask the user for their name but only the name Alice and Bob are greeted with their names. Other people are greeted with a Hello

4) Insert a Procedure name VBANameLoop() so that the program will keep asking for your name and greeting the user until the user type in the word exit. (If your program is looping constantly in error, you can stop it by pressing Ctrl [Pause/Break] to stop the running program).

5) Insert a Procedure name VBANumbers() that asks the user for a number n. The procedure will then print out the sum of numbers from 1 to n

6) Create a new form with INF Address as the forms caption. In the body of the form, use labels to show the INF's name and address (address & street number, city, postal code). Use one label for each line of text. Use the Properties window to alter the BackColor properties of the form and all the labels to red, and the ForeColor of the labels to yellow. Also, change the Font properties of the labels to 14 point Times New Roman. Run the program and press Alt+Print Screen while the program is running. This takes a screenshot of the program window. Paste it into your Word document.

7) Create a new form with four command buttons. Label each one with a different colour name. Write code so that when the user clicks one of the buttons, the colour (BackColor) of the form changes to match the colour name shown on that button. Here is an example of what the form might look like (choose from the VBA colour codes of vbBlack, vbWhite, vbRed, vbGreen, vbBlue, vbYellow, vbMagenta, and vbCyan):

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!