Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- With Selection.Find
- .Text = "nr. (*) XZXZX^13Dosar nr."
- .Replacement.Text = ""
- .Forward = True
- .Wrap = wdFindContinue
- .Format = False
- .MatchCase = False
- .MatchWholeWord = False
- .MatchAllWordForms = False
- .MatchSoundsLike = False
- .MatchWildcards = True
- End With
- Selection.Find.Execute
- Selection.MoveUp Unit:=wdLine, Count:=1
- ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=1, NumColumns:= _
- 2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
- wdAutoFitFixed
- With Selection.Tables(1)
- If .Style <> "Table Grid" Then
- .Style = "Table Grid"
- End If
- .ApplyStyleHeadingRows = True
- .ApplyStyleLastRow = False
- .ApplyStyleFirstColumn = True
- .ApplyStyleLastColumn = False
- .ApplyStyleRowBands = True
- .ApplyStyleColumnBands = False
- End With
- Selection.EndKey Unit:=wdLine, Extend:=wdExtend
- Selection.EndKey Unit:=wdLine, Extend:=wdExtend
- Selection.Borders(wdBorderTop).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderRight).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
- Selection.Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
- Selection.MoveLeft Unit:=wdCharacter, Count:=1
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
- Selection.MoveDown Unit:=wdLine, Count:=2
- Selection.HomeKey Unit:=wdLine, Extend:=wdExtend
- Selection.Cut
- Selection.MoveUp Unit:=wdLine, Count:=2
- Selection.PasteAndFormat (wdFormatOriginalFormatting)
- Selection.MoveDown Unit:=wdLine, Count:=3
- Selection.EndKey Unit:=wdLine
- Selection.HomeKey Unit:=wdLine, Extend:=wdExtend
- Selection.Cut
- Selection.MoveUp Unit:=wdLine, Count:=3
- Selection.EndKey Unit:=wdLine
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Selection.PasteAndFormat (wdFormatOriginalFormatting)
- Selection.MoveDown Unit:=wdLine, Count:=4
- Selection.MoveLeft Unit:=wdCharacter, Count:=4, Extend:=wdExtend
- Selection.EndKey Unit:=wdLine
- Selection.MoveLeft Unit:=wdCharacter, Count:=4, Extend:=wdExtend
- Selection.Copy
- Selection.MoveUp Unit:=wdLine, Count:=5
- Selection.MoveDown Unit:=wdLine, Count:=1
- Selection.MoveLeft Unit:=wdCharacter, Count:=1
- Selection.TypeText Text:="/"
- Selection.PasteAndFormat (wdFormatOriginalFormatting)
- Selection.MoveUp Unit:=wdLine, Count:=1
- Selection.TypeParagraph
- Selection.MoveDown Unit:=wdLine, Count:=2
- Selection.Delete Unit:=wdCharacter, Count:=1
- Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
- Selection.MoveDown Unit:=wdLine, Count:=1
- Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
- Selection.MoveDown Unit:=wdLine, Count:=1
- Selection.EndKey Unit:=wdLine
- Selection.TypeParagraph
- Selection.TypeParagraph
Add Comment
Please, Sign In to add comment