Question: A simple subroutine to ask a user for their name and display a welcome message is shown below: Sub DisplayMessage ( ) Dim YourName As

A simple subroutine to ask a user for their name and display a welcome message is shown below:
Sub DisplayMessage ()
Dim YourName As string
YourName = InputBox ("Type in your name")
MsgBox "Hello, " a youxname " How old axe you?"
End sub
Why does the line in red not make sense to Visual Basic?
The quotation marks are not correct
There is an ampersand (&) character missing
You cannot use an ampersand to join text together - instead you should use the CONCATENATE function
The message to be displayed must be in brackets
 A simple subroutine to ask a user for their name and

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!