I'm a VBA novice at best. I'm trying to code a button to create an email to send out once all cells in a certain range are completed. I have the following code and I keep getting a runtime error - mistmatch 13 when I go to debug it points to the Range("E13:18")
. I'm not sure what I'm doing wrong here. Any help would be greatly appreciated.
Sub btnSendCompletedForm()
'
' btnSendCompletedForm Macro
' Send Form
'Dim MyOutlook As Object
Dim MyMessage As Object
Dim SubjectLine As String
Dim SendOK As Boolean
SendOK = False
'Check if fields filled out.
If Worksheets("NetCert Form").Range("E13:E18") = "" Then ' Error is here
Range("E13:E18").Select
MsgBox ("Please complete all Client User Information.")
Else
SendOK = True
End If
'Check if OK to send.
If SendOK Then