Guest User

Untitled

a guest
Feb 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.21 KB | None | 0 0
  1. Sub zooquest()
  2.  
  3.     Selection.AutoFilter
  4.     ActiveSheet.Range("$A$1:$A$1337").AutoFilter Field:=1, Criteria1:= _
  5.         "=*ENTER_MINI_GAME*", Operator:=xlAnd
  6.     Columns("A:A").Select
  7.     ActiveWindow.SmallScroll Down:=-12
  8.     Selection.ClearContents
  9.     Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
  10.         TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
  11.         Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
  12.         :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), TrailingMinusNumbers:= _
  13.         True
  14.     Cells.Select
  15.     Selection.ColumnWidth = 26.01
  16.     ActiveWindow.SmallScroll Down:=-72
  17.    
  18.     Columns("A:A").Select
  19.     Selection.NumberFormat = "d/m/yyyy h:mm:ss"
  20.     Columns("E:E").Select
  21.     Selection.NumberFormat = "h:mm:ss"
  22.     Range("E2").Select
  23.     ActiveCell.FormulaR1C1 = "=R[1]C[-4]-RC[-4]"
  24.     Range("E2").Select
  25.     Selection.AutoFill Destination:=Range("E2:E1337"), Type:=xlFillDefault
  26.     Range("E2:E1337").Select
  27.     Columns("E:E").Select
  28.  
  29.     Selection.AutoFilter
  30.     ActiveSheet.Range("$E$1:$E$1337").AutoFilter Field:=1, Criteria1:= _
  31.     ">00:15:00", Operator:=xlAnd
  32.     ActiveWindow.SmallScroll Down:=-36
  33.  
  34.     Selection.ClearContents
  35.  
  36.     Selection.Copy
  37.     Columns("F:F").Select
  38.     Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
  39.         :=False, Transpose:=False
  40.     Application.CutCopyMode = False
  41.     Selection.NumberFormat = "h:mm:ss"
  42.     Selection.AutoFilter
  43.     ActiveWorkbook.Worksheets("mel2_log").AutoFilter.Sort.SortFields.Clear
  44.     ActiveWorkbook.Worksheets("mel2_log").AutoFilter.Sort.SortFields.Add Key:= _
  45.         Range("F1:F1337"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption _
  46.         :=xlSortNormal
  47.     With ActiveWorkbook.Worksheets("mel2_log").AutoFilter.Sort
  48.         .Header = xlYes
  49.         .MatchCase = False
  50.         .Orientation = xlTopToBottom
  51.         .SortMethod = xlPinYin
  52.         .Apply
  53.     End With
  54.  
  55.     Range("G2").Select
  56.     ActiveCell.FormulaR1C1 = "=SUM(R2C6:RC[-1])"
  57.     Range("G2").Select
  58.     Selection.AutoFill Destination:=Range("G2:G1337"), Type:=xlFillDefault
  59.     Range("G2:G1337").Select
  60.  
  61. End Sub
Add Comment
Please, Sign In to add comment