Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 30

Sub reemplazo12()

'

' reemplazo12 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. xxx del xxxx de 2016"

.Replacement.Text = "Resolución No. Res_MAR del Fecha_MAR"

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

ActiveWindow.ActivePane.VerticalPercentScrolled = 0

End Sub

Sub reemplazar123()

'

' reemplazar123 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. xxxx del xxxxx de 2016"


.Replacement.Text = "Resolución No. Res_MAR del Fecha_MAR"

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub unificacion()

'

' unificacion Macro

'

Application.Run MacroName:="reemplazoA"

Application.Run MacroName:="reemplazarB"

End Sub

Sub FIRMA1()

'

' FIRMA1 Macro

'

'

Selection.InlineShapes.AddPicture FileName:= _

"C:\Users\hernan.suarez\Pictures\firma OAJ.png", _

LinkToFile:=False, SaveWithDocument:=True

End Sub
Sub CENTRAR()

'

' CENTRAR Macro

'

'

Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter

Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter

End Sub

Sub FIRMA_UNIFI()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="FIRMA1"

Selection.MoveLeft Unit:=wdCharacter, Count:=1

Application.Run MacroName:="CENTRAR"

Application.Run MacroName:="res"

Application.Run MacroName:="reemplazar_RES"

End Sub

Sub reemplazar_RES()

'

' reemplazar_RES Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

With Selection.Find

.Text = "Res_MAR"

.Replacement.Text = InputBox("Entre el texto nuevo.", "BatchReplaceAnywhere")


.Execute Replace:=wdReplaceAll

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub res()

'

' res Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Res_MAR"

.Replacement.Text = InputBox("Entre el texto nuevo.", "BatchReplaceAnywhere")

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False
.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub a_formato_firma_UNIFI()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="unificacion"

Application.Run MacroName:="fecha1"

Application.Run MacroName:="fecha"

Application.Run MacroName:="FIRMA_UNIFI"

End Sub

Sub fecha()

'

' fecha Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Fecha_MAR"

.Replacement.Text = "28 de Julio de 2017"

.Forward = True

.Wrap = wdFindContinue

.Format = False
.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub fecha1()

'

' fecha1 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Dada en Bogotá, "

.Replacement.Text = "Dada en Bogotá, el Fecha_MAR "

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub firma_masiva()
'

' firma_masiva Macro

'

'

Application.Run MacroName:="FIRMA1"

ActiveDocument.AcceptAllRevisions

Application.Run MacroName:="CENTRAR"

ActiveDocument.AcceptAllRevisions

End Sub

Sub masivo1()

'

' masivo1 Macro

'

'

Application.Run MacroName:="firma_masiva"

ActiveDocument.AcceptAllRevisions

End Sub

Sub a_formato_firma_UNIFI1()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="busca_firma"

Application.Run MacroName:="unificacion"

Application.Run MacroName:="fecha1"

Application.Run MacroName:="CENTRAR"

Application.Run MacroName:="fecha"

Application.Run MacroName:="FIRMA_UNIFI"
Application.Run MacroName:="fecha23"

End Sub

Sub fecha23()

'

' reemplazar_RES Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

With Selection.Find

.Text = "Fecha_MAR"

.Replacement.Text = "28 de Julio de 2017"

.Execute Replace:=wdReplaceAll

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub busca_F()
'

' busca_F Macro

'

'

Selection.Find.ClearFormatting

With Selection.Find

.Text = "Firma_MAR"

.Replacement.Text = ""

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute

Selection.InlineShapes.AddPicture FileName:= _

"C:\Users\hernan.suarez\Pictures\firma OAJ.png", LinkToFile:=False, _

SaveWithDocument:=True

End Sub

Sub a_formato_firma_UNIFI_final()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="busca_F"

Application.Run MacroName:="fecha"

Application.Run MacroName:="res"
Application.Run MacroName:="reemplazar_RES"

Application.Run MacroName:="fecha23"

End Sub

Sub a_formato_firma_res_fecha_final()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="busca_F"

Application.Run MacroName:="fecha"

Application.Run MacroName:="res"

Application.Run MacroName:="reemplazar_RES"

Application.Run MacroName:="fecha23"

End Sub

Sub proceso_final()

'

' proceso_final Macro

'

'

With Selection.Find

.Text = "Dada en Bogotá,"

.Replacement.Text = "Dada en Bogotá, el Fecha_MAR"

.Forward = True

.Wrap = wdFindAsk

.Format = False
.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

With Selection

If .Find.Forward = True Then

.Collapse Direction:=wdCollapseStart

Else

.Collapse Direction:=wdCollapseEnd

End If

.Find.Execute Replace:=wdReplaceOne

If .Find.Forward = True Then

.Collapse Direction:=wdCollapseEnd

Else

.Collapse Direction:=wdCollapseStart

End If

.Find.Execute

End With

With Selection.Find

.Text = "NUMERO_RESOLUCION_OAJ"

.Replacement.Text = "Res_MAR"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False
End With

With Selection

If .Find.Forward = True Then

.Collapse Direction:=wdCollapseStart

Else

.Collapse Direction:=wdCollapseEnd

End If

.Find.Execute Replace:=wdReplaceOne

If .Find.Forward = True Then

.Collapse Direction:=wdCollapseEnd

Else

.Collapse Direction:=wdCollapseStart

End If

.Find.Execute

End With

With Selection.Find

.Text = _

"DIA_RESOLUCION_OAJ del mes de MES_RESOLUCION_OAJ de AÑO_RESOLUCION_OAJ"

.Replacement.Text = "Fecha_MAR"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

With Selection

If .Find.Forward = True Then


.Collapse Direction:=wdCollapseStart

Else

.Collapse Direction:=wdCollapseEnd

End If

.Find.Execute Replace:=wdReplaceOne

If .Find.Forward = True Then

.Collapse Direction:=wdCollapseEnd

Else

.Collapse Direction:=wdCollapseStart

End If

.Find.Execute

End With

End Sub

Sub a11()

'

' a11 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Dada en Bogotá, el"

.Replacement.Text = "Dada en Bogotá, el 16 de Agosto de 2017"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False
.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. del ,"

.Replacement.Text = "Resolución No. Res_MAR del 16 de Agosto de 2017"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

ActiveWindow.ActivePane.VerticalPercentScrolled = 0

If ActiveWindow.View.SplitSpecial <> wdPaneNone Then

ActiveWindow.Panes(2).Close

End If

If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _

ActivePane.View.Type = wdOutlineView Then

ActiveWindow.ActivePane.View.Type = wdPrintView

End If

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución N° del "


.Replacement.Text = "Resolución No. Res_MAR del 16 de Agosto de 2017"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

End Sub

Sub aa_1()

'

' aa_1 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Dada en Bogotá, el"

.Replacement.Text = "Dada en Bogotá, el 16 de Agosto de 2017"

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False
.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. del "

.Replacement.Text = _

"Resolución No. Res_MAR del 16 de Agosto de 2017 "

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

ActiveWindow.ActivePane.VerticalPercentScrolled = 0

If ActiveWindow.View.SplitSpecial <> wdPaneNone Then

ActiveWindow.Panes(2).Close

End If

If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _

ActivePane.View.Type = wdOutlineView Then

ActiveWindow.ActivePane.View.Type = wdPrintView

End If

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find
.Text = "Resolución N° del "

.Replacement.Text = _

"Resolución No. Res_MAR del 16 de Agosto de 2017 "

.Forward = True

.Wrap = wdFindAsk

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub COMBINACION()

'

Application.DisplayAlerts = False

Dim i As Integer

For i = 0 To ActiveDocument.MailMerge.DataSource.RecordCount

With ActiveDocument.MailMerge

.Destination = wdSendToNewDocument

.SuppressBlankLines = True

With .DataSource

.FirstRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord

.LastRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord

End With

.Execute Pause:=False

End With

Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend

Selection.Copy
'MsgBox (Selection.Text + ".doc")'

ChangeFileOpenDirectory "C:\Users\hernan.suarez\Desktop\ACTOS COMBINADOS"

ActiveDocument.SaveAs FileName:=Selection.Text + ".doc", FileFormat:= _

wdFormatXMLDocument, LockComments:=False, Password:="", AddToRecentFiles _

:=True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts _

:=False, SaveNativePictureFormat:=False, SaveFormsData:=False, _

SaveAsAOCELetter:=False

ActiveDocument.Close

'MsgBox ("")'

ActiveDocument.MailMerge.DataSource.ActiveRecord = wdNextRecord

Next

End Sub

Public Sub SustituirTextoTodosDocumentos()

'Macro by Doug Robbins - 1st March 2004

Dim PrimerLazo As Boolean

Dim myFile As String

Dim Trayectoria As String

Dim myDoc As Document

Dim rango As Word.Range

Dim EncontrarTexto As String

Dim Replacement As String

' Encontrar la carpeta que contiene los archivos

With Dialogs(wdDialogCopyFile)

If .Display <> 0 Then


Trayectoria = .Directory

Else

MsgBox "Cancelado"

Exit Sub

End If

End With

'Cerrar documentos que esten abiertos

If Documents.Count > 1 Then

Documents.Close Savechanges:=wdPromptToSaveChanges

End If

PrimerLazo = True

If Left(Trayectoria, 1) = Chr(34) Then

Trayectoria = Mid(Trayectoria, 2, Len(Trayectoria) - 2)

End If

myFile = Dir$(Trayectoria & "*.doc")

While myFile <> ""

'Coger texto a reamplazar y reemplazarlo

If PrimerLazo = True Then

EncontrarTexto = InputBox("Escriba el texto que usted quiere reemplazar.", "Batch


Replace Anywhere")

If EncontrarTexto = "" Then

MsgBox "Cancelado"

Exit Sub

End If

Tryagain: Replacement = InputBox("Entre el texto nuevo.", "BatchReplaceAnywhere")

If Replacement = "" Then

Response = MsgBox("¿Quiere borrar el texto encontrado?", vbYesNoCancel)

If Response = vbNo Then

GoTo Tryagain

ElseIf Response = vbCancel Then

MsgBox "Cancelado"
Exit Sub

End If

End If

PrimerLazo = False

End If

'Abrir para reemplazar texto a archivos

Set myDoc = Documents.Open(Trayectoria & myFile)

HacerlaValida

For Each rango In ActiveDocument.StoryRanges

Do

BuscarYReemplazar rango, EncontrarTexto, Replacement

Set rango = rango.NextStoryRange

Loop Until rango Is Nothing

Next

'Cerrar Archivos Guardando los cambios

myDoc.Close Savechanges:=wdSaveChanges

myFile = Dir$()

Wend

End Sub

Public Sub BuscarYReemplazar(ByVal rango As Word.Range, _

ByVal strSearch As String, _

ByVal strReplace As String)

'rutina provista by Peter Hewett

Do Until (rango Is Nothing)

With rango.Find

.ClearFormatting

.Replacement.ClearFormatting

.Text = strSearch

.Replacement.Text = strReplace

.Forward = True

.Wrap = wdFindContinue
.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchAllWordForms = False

.MatchSoundsLike = False

.MatchWildcards = False

.Execute Replace:=wdReplaceAll

End With

Set rango = rango.NextStoryRange

Loop

End Sub

Public Sub HacerlaValida()

Dim lngJunk As Long

lngJunk = ActiveDocument.Sections(1).Headers(1).Range.StoryType

End Sub

Public Sub convertirPDFTodosDocumentos()

'Macro by Doug Robbins - 1st March 2004

Dim PrimerLazo As Boolean

Dim myFile As String

Dim Trayectoria As String

Dim myDoc As Document

Dim rango As Word.Range

Dim EncontrarTexto As String

Dim Replacement As String

' Encontrar la carpeta que contiene los archivos


With Dialogs(wdDialogCopyFile)

If .Display <> 0 Then

Trayectoria = .Directory

Else

MsgBox "Cancelado"

Exit Sub

End If

End With

'Cerrar documentos que esten abiertos

If Documents.Count > 1 Then

Documents.Close Savechanges:=wdPromptToSaveChanges

End If

PrimerLazo = True

If Left(Trayectoria, 1) = Chr(34) Then

Trayectoria = Mid(Trayectoria, 2, Len(Trayectoria) - 2)

End If

myFile = Dir$(Trayectoria & "*.doc")

While myFile <> ""

'Coger texto a reamplazar y reemplazarlo

'Abrir para reemplazar texto a archivos

Set myDoc = Documents.Open(Trayectoria & myFile)

HacerlaValida

For Each rango In ActiveDocument.StoryRanges

Do

SaveAsPdf

Set rango = rango.NextStoryRange

Loop Until rango Is Nothing

Next

'Cerrar Archivos Guardando los cambios

myDoc.Close Savechanges:=wdSaveChanges
myFile = Dir$()

Wend

End Sub

Public Sub BuscarYReemplazar(ByVal rango As Word.Range, _

ByVal strSearch As String, _

ByVal strReplace As String)

'rutina provista by Peter Hewett

Do Until (rango Is Nothing)

With rango.Find

.ClearFormatting

.Replacement.ClearFormatting

.Text = strSearch

.Replacement.Text = strReplace

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchAllWordForms = False

.MatchSoundsLike = False

.MatchWildcards = False

.Execute Replace:=wdReplaceAll

End With

Set rango = rango.NextStoryRange

Loop

End Sub

Public Sub HacerlaValida()

Dim lngJunk As Long

lngJunk = ActiveDocument.Sections(1).Headers(1).Range.StoryType
End Sub

Public Sub SaveAsPdf()

If Application.Name = "Microsoft Word" Then

Dim doc As Word.Document

Set doc = Word.Application.ActiveDocument

Dim docName As String

docName = doc.Path + "\" + doc.Name + ".pdf"

doc.SaveAs2 docName, wdFormatPDF

End If

End Sub

Sub reemplazoA()

'

' reemplazo12 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. xxx del xxxx de 2016"

.Replacement.Text = "Resolución No. Res_MAR del Fecha_MAR"

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False
.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

ActiveWindow.ActivePane.VerticalPercentScrolled = 0

End Sub

Sub reemplazarB()

'

' reemplazar123 Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Resolución No. xxxx del xxxxx de 2016"

.Replacement.Text = "Resolución No. Res_MAR del Fecha_MAR"

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub unificacionA()
'

' unificacion Macro

'

Application.Run MacroName:="reemplazoA"

Application.Run MacroName:="reemplazarB"

End Sub

Sub reemplazar_RES()

'

' reemplazar_RES Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

With Selection.Find

.Text = "Res_MAR"

.Replacement.Text = InputBox("Entre el texto nuevo.", "BatchReplaceAnywhere")

.Execute Replace:=wdReplaceAll

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub
Sub res()

'

' res Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Res_MAR"

.Replacement.Text = InputBox("Entre el texto nuevo.", "BatchReplaceAnywhere")

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub a_formato_firma_UNIFI_A()

'

' FIRMA_UNIFI Macro

'

'

Application.Run MacroName:="unificacionA"

Application.Run MacroName:="fechaA"
Application.Run MacroName:="fechaB"

End Sub

Sub fechaB()

'

' fecha Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Fecha_MAR"

.Replacement.Text = "30 de Mayo de 2017"

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub fechaA()

'

' fecha1 Macro

'

'

Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting

With Selection.Find

.Text = "Dada en Bogotá, "

.Replacement.Text = "Dada en Bogotá, el Fecha_MAR "

.Forward = True

.Wrap = wdFindContinue

.Format = False

.MatchCase = False

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

Sub fechaC()

'

' reemplazar_RES Macro

'

'

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

With Selection.Find

.Text = "Fecha_MAR"

.Replacement.Text = "30 de Mayo de 2017"

.Execute Replace:=wdReplaceAll

.Forward = True

.Wrap = wdFindContinue
.Format = False

.MatchCase = True

.MatchWholeWord = False

.MatchWildcards = False

.MatchSoundsLike = False

.MatchAllWordForms = False

End With

Selection.Find.Execute Replace:=wdReplaceAll

End Sub

You might also like