Veri doğrulama listesi kullanan bir sütunu olan paylaşılan bir çalışma kitabım var. Seçilirse YES, çalışma kitabına bakmalarını istemek için belli bir bölüme e-posta göndermesini istiyorum.
Bu kadar uzağa geldim
Sub SendMail()
If Range("G10:G250") = "YES" Then
With CreateObject("Outlook.Application").createitem(0)
.To = "p***.h***@****.com"
.Subject = "Update from Facility Manager"
.Body = "Hi Property Services, " & vbNewLine & vbNewLine & " Please follow the link to see update on Facilty Management Tracker"
.Send
End With
End If
End Sub
ama ben bir type mismatchhata alıyorum.