Hi,
I am getting Mismatch error in following code - suggestion please -
Private Sub CommandButton1_Click()
Dim sInp1 As String
Dim sInp2 As String
Dim sInp3 As String
Dim sInp4 As String
Dim sOut As String
sInp1 = InputBox("Enter Length Along Main Ridge")
sInp2 = InputBox("Enter Second Length")
sInp3 = InputBox("Enter Length of Main Hip")
sInp4 = InputBox("Enter Length of Second Hip")
If Len(sInp1) Then
If Len(sInp2) Then
If Len(sInp3) Then
If Len(sInp4) Then
sOut = InputBox("Select Output Cell")
If Len(sOut) Then
Range(sOut).Value = (((sInp1 - (sInp2 / 2)) - ((sInp3 / 2) + ((sInp3 + sInp4) / 4))))
End If
End If
End If
End If
End If
End Sub
thanks
I am getting Mismatch error in following code - suggestion please -
Private Sub CommandButton1_Click()
Dim sInp1 As String
Dim sInp2 As String
Dim sInp3 As String
Dim sInp4 As String
Dim sOut As String
sInp1 = InputBox("Enter Length Along Main Ridge")
sInp2 = InputBox("Enter Second Length")
sInp3 = InputBox("Enter Length of Main Hip")
sInp4 = InputBox("Enter Length of Second Hip")
If Len(sInp1) Then
If Len(sInp2) Then
If Len(sInp3) Then
If Len(sInp4) Then
sOut = InputBox("Select Output Cell")
If Len(sOut) Then
Range(sOut).Value = (((sInp1 - (sInp2 / 2)) - ((sInp3 / 2) + ((sInp3 + sInp4) / 4))))
End If
End If
End If
End If
End If
End Sub
thanks