0
I made a code Visual Basics to identify the maturity of insurance policies and raise a pop-up and fire an email alerting you if you are close to maturity.
The database is displaying the Policy Number, defined as valorApolice in the column And; 
the Object Group insured, defined as groupApolice in the column C ;
and the policy maturity date, defined as valorData in the column H.
I need that Cód to replicate for all rows filled in at the base.
It follows Cód that I arrived:
Sub Workbook_Open()
Worksheets("plan1").Select
Dim valorData As Date
Dim valorApolice As String
Dim groupApolice As String
valorData = Range("H11").Value
valorApolice = Range("e11").Value
groupApolice = Range("c11").Value
If DateDiff("d", Now(), valorData) < 0 Then
    msgbox "Atenção: A apólice de seguro " & valorApolice & " de " & groupApolice & ", está vencida!", vbInformation + vbOKOnly
        Set OutApp = CreateObject("Outlook.Application")
        Set OutMail = OutApp.CreateItem(olMailItem)
        Application.DisplayAlerts = False
     With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "TESTE: Vencimento de Apólice de Seguro"
    .HTMLBody = "TESTE: Atenção: A apólice de seguro " & valorApolice & " de " & groupApolice & ", está vencida! Entrar em contato com Corretora de Seguros urgente."
    .Send 'Ou .Display para mostrar o email
        End With
         Application.DisplayAlerts = True
         Set OutMail = Nothing
         Set OutApp = Nothing
ElseIf DateDiff("d", Now(), valorData) < 30 Then
    msgbox "Atenção: a apólice de seguro " & valorApolice & " de " & groupApolice & ", tem vencimento dentro do mês!", vbInformation + vbOKOnly
        Set OutApp = CreateObject("Outlook.Application")
        Set OutMail = OutApp.CreateItem(olMailItem)
        Application.DisplayAlerts = False
     With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "Vencimento de Apólice de Seguro"
    .HTMLBody = "Atenção: A apólice de seguro " & valorApolice & " de " & groupApolice & ", está vencendo! Entrar em contato com Corretora de Seguros."
    .Send 'Ou .Display para mostrar o email
        End With
         Application.DisplayAlerts = True
         Set OutMail = Nothing
         Set OutApp = Nothing
End If
msgbox "Não há mais outros vencimentos de seguros dentro de um mês.", vbInformation + vbOKOnly
Worksheets("MENU").Select
End Sub
msgbox "Não há mais outros vencimentos de seguros dentro de um mês.", vbInformation + vbOKOnly
Worksheets("MENU").Select
End Sub
Your email is unsigned, so please check this answer
– danieltakeshi