Vba on command button to check blank cells?
Closed
JR
-
Aug 12, 2010 at 06:26 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Aug 17, 2010 at 10:56 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Aug 17, 2010 at 10:56 PM
Related:
- Vba on command button to check blank cells?
- Cs 1.6 money command - Guide
- Check soft - Download - Finance
- At button - Guide
- How to check if someone is spying on my whatsapp - Guide
- Vba case like - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Aug 17, 2010 at 10:56 PM
Aug 17, 2010 at 10:56 PM
if the cell if they are blank or not before sending the mail
Private Sub CommandButton1_Click() If (Range("G23") = "") Then MsgBox "G23 is blank" Exit Sub End If ActiveWorkbook.SendMail Recipients:="jon@jonjon.com", Subject:=Range("G23").Value & "-" & Range("G37").Value & " - " & Range("G19").Value End Sub