Bom dia a todos,
Estou com um problema em um botão que abre um documento no WORD para impressão através de indicadores (BookMarks). Quando o botão é acionado, só abre o primeiro registro do formulário, e não o registro do formulário atual que está em uso.
Desde já fico grato a quem possa me ajudar a revolver.... segue o código usado no botão:
If Seleção78 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
Dim oapp As Object
Dim endereco As String
Dim arquivo As String
endereco = CurrentProject.Path
arquivo = ("\OuvAutAdv.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("AdvAut1").Select
.selection.Text = CStr(AutConsulta("AdvAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("AdvAut1Rodape").Select
.selection.Text = CStr(AutConsulta("AdvAut1"))
End With
Else
If Seleção82 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAutSemAssinatura.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
Else
If Seleção84 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAutNaoRealizada.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
Else
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAut.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
End If
End If
End If
Estou com um problema em um botão que abre um documento no WORD para impressão através de indicadores (BookMarks). Quando o botão é acionado, só abre o primeiro registro do formulário, e não o registro do formulário atual que está em uso.
Desde já fico grato a quem possa me ajudar a revolver.... segue o código usado no botão:
If Seleção78 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
Dim oapp As Object
Dim endereco As String
Dim arquivo As String
endereco = CurrentProject.Path
arquivo = ("\OuvAutAdv.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("AdvAut1").Select
.selection.Text = CStr(AutConsulta("AdvAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("AdvAut1Rodape").Select
.selection.Text = CStr(AutConsulta("AdvAut1"))
End With
Else
If Seleção82 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAutSemAssinatura.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
Else
If Seleção84 = True Then
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAutNaoRealizada.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
Else
Set db = CurrentDb()
Set AutConsulta = db.OpenRecordset("AutConsulta")
endereco = CurrentProject.Path
arquivo = ("\OuvAut.docx")
Set oapp = CreateObject("Word.Application")
'cria e abre o objeto do word
With oapp
.Documents.Open (endereco + arquivo)
'Deixa o Word visível.
.Visible = True
.activedocument.bookmarks("NomeAut1").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("AlcunhaAut1").Select
.selection.Text = CStr(AutConsulta("AlcunhaAut1"))
.activedocument.bookmarks("ProfAut1").Select
.selection.Text = CStr(AutConsulta("ProfAut1"))
.activedocument.bookmarks("EstCivilAut1").Select
.selection.Text = CStr(AutConsulta("EstCivilAut1"))
.activedocument.bookmarks("NaturAut1").Select
.selection.Text = CStr(AutConsulta("NaturalAut1"))
.activedocument.bookmarks("FiliAut1").Select
.selection.Text = CStr(AutConsulta("FiliAut1"))
.activedocument.bookmarks("NascAut1").Select
.selection.Text = CStr(AutConsulta("NascAut1"))
.activedocument.bookmarks("IdadeAut1").Select
.selection.Text = CStr(AutConsulta("IdadeAut1"))
.activedocument.bookmarks("InstrAut1").Select
.selection.Text = CStr(AutConsulta("InstrAut1"))
.activedocument.bookmarks("RgAut1").Select
.selection.Text = CStr(AutConsulta("RgAut1"))
.activedocument.bookmarks("CpfAut1").Select
.selection.Text = CStr(AutConsulta("CpfAut1"))
.activedocument.bookmarks("EndAut1").Select
.selection.Text = CStr(AutConsulta("EndAut1"))
.activedocument.bookmarks("EndCAut1").Select
.selection.Text = CStr(AutConsulta("EndComercAut1"))
.activedocument.bookmarks("TelAut1").Select
.selection.Text = CStr(AutConsulta("TelAut1"))
.activedocument.bookmarks("ParenteAut1").Select
.selection.Text = CStr(AutConsulta("GrauParentAut1"))
.activedocument.bookmarks("FamiliaAut1").Select
.selection.Text = CStr(AutConsulta("FamiliaAut1"))
.activedocument.bookmarks("OuvidaAut1").Select
.selection.Text = CStr(AutConsulta("InterrogAut1"))
.activedocument.bookmarks("RecolhAut1").Select
.selection.Text = CStr(AutConsulta("FatoRecolh"))
.activedocument.bookmarks("Bel").Select
.selection.Text = CStr(AutConsulta("EquipeBel"))
.activedocument.bookmarks("Ag1").Select
.selection.Text = CStr(AutConsulta("EquipeAg1"))
.activedocument.bookmarks("Ag2").Select
.selection.Text = CStr(AutConsulta("EquipeAg2"))
.activedocument.bookmarks("Escriba").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
.activedocument.bookmarks("NomeAut1Rodape").Select
.selection.Text = CStr(AutConsulta("NomeAut1"))
.activedocument.bookmarks("EscribaRodape").Select
.selection.Text = CStr(AutConsulta("EquipeEscriba"))
End With
End If
End If
End If