It's been awhile since I've done VBA so I'm rusty
I have a sheet, that has an If statement saying =IF(B9>0,"Fields left to complete","OK to submit") there's also a Submit button. If user clicks submit button and cell says "OK to submit" then a msgbox comes up saying it will send an email to email@company.com and the email is sent. If user clicks submit button and cell says "Fields left to complete" a msg box comes up saying you haven't filled everything out and they just click ok.
When i click the button it will give me the "You haven't filled everything out" part. I think VBA is not recognizing the OK to submit part.
PLEEEAAAASSSSEEE help I need to turn this is soon
Here's what I have below:
Sub SendEmail()
'use the MsgBox object to inform the user
If C10 = "OK to submit" Then
MsgBox "Are you ready to submit CC refund request?", vbYesNo, "Company Credit Card Department", , "Clicking Yes will send an email to credit cards for processing of your CC refund request"
ActiveWorkbook.SendMail "email@company.com", "CC refund request for" & B17
Else
MsgBox "You have not completed all required fields."
End If
End Sub
I have a sheet, that has an If statement saying =IF(B9>0,"Fields left to complete","OK to submit") there's also a Submit button. If user clicks submit button and cell says "OK to submit" then a msgbox comes up saying it will send an email to email@company.com and the email is sent. If user clicks submit button and cell says "Fields left to complete" a msg box comes up saying you haven't filled everything out and they just click ok.
When i click the button it will give me the "You haven't filled everything out" part. I think VBA is not recognizing the OK to submit part.
PLEEEAAAASSSSEEE help I need to turn this is soon
Here's what I have below:
Sub SendEmail()
'use the MsgBox object to inform the user
If C10 = "OK to submit" Then
MsgBox "Are you ready to submit CC refund request?", vbYesNo, "Company Credit Card Department", , "Clicking Yes will send an email to credit cards for processing of your CC refund request"
ActiveWorkbook.SendMail "email@company.com", "CC refund request for" & B17
Else
MsgBox "You have not completed all required fields."
End If
End Sub