Question: VBA LANGUAGE a) Identification and correction of syntax errors to read the following programming code. b) Identify the five syntax errors by circulating each error.

VBA LANGUAGE

a) Identification and correction of syntax errors to read the following programming code.

b) Identify the five syntax errors by circulating each error.

c) Rewrite the programming code with the corrected errors.

Programming code:

Option Explicit

Sub CritArea()

Dim r As Variant, critmsg As String Dim A As Double

critmsg = Explosion r = InputBox Enter radius (m): pi = 3.151593 A = ((pi) * (r ^ (2))) If A > 300 Then MsgBox(critmsg, , Pressure exceed)

End If

End Sub

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!