Hi, I am trying to get the code below to work in excel macro userform.
If OptbtnSalesComms Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "No Sales Commission"
If txtPandL.Text >= 0 Then
txtanalysis.Text = "Sales Commission =" & " " & "£" & txtPandL.Text * 0.1
ElseIf OptbtnFin Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "Made a Loss, Notify Line Manager to review"
If txtPandL.Text <= 200 Then
txtanalysis.Text = "Not a Huge Profit, Notify Line Manager to review"
If txtPandL.Text >= 200 Then
txtanalysis.Text = "Substantial profit today, Well Done!!!"
ElseIf OptbtnVAT Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "No VAT Payable"
If txtPandL.Text >= 0 Then
txtanalysis.Text = "VAT =" & " " & "£" & txtPandL.Text * 0.175
Elsetxt.analysis.Text = "please select 'Type of Analysis'"
End If
Can somebody please tell me where I am going wrong
If OptbtnSalesComms Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "No Sales Commission"
If txtPandL.Text >= 0 Then
txtanalysis.Text = "Sales Commission =" & " " & "£" & txtPandL.Text * 0.1
ElseIf OptbtnFin Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "Made a Loss, Notify Line Manager to review"
If txtPandL.Text <= 200 Then
txtanalysis.Text = "Not a Huge Profit, Notify Line Manager to review"
If txtPandL.Text >= 200 Then
txtanalysis.Text = "Substantial profit today, Well Done!!!"
ElseIf OptbtnVAT Then
If txtPandL.Text <= 0 Then
txtanalysis.Text = "No VAT Payable"
If txtPandL.Text >= 0 Then
txtanalysis.Text = "VAT =" & " " & "£" & txtPandL.Text * 0.175
Elsetxt.analysis.Text = "please select 'Type of Analysis'"
End If
Can somebody please tell me where I am going wrong