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
Get step-by-step solutions from verified subject matter experts
