-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPoints Fighter Two - Module 8.bas
82 lines (58 loc) · 2.52 KB
/
Points Fighter Two - Module 8.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Sub TakedownFighterTwo()
Range("H2").Value = Range("H2").Value + 2
Dim timeWS As Worksheet
Dim timeRange As Range
'Change "Fighter Two Logs" to whatever worksheet is your click log
Set timeWS = ThisWorkbook.Sheets("Fighter Two Logs")
'find the last cell in column C of your log
Set timeRange = timeWS.Range("C" & timeWS.Rows.Count).End(xlUp).Offset(1)
'Write which button was clicked in column C
timeRange.Value = Application.Caller
'Write the time in column D
timeRange.Offset(, 1).Value = Now()
End Sub
Sub ReversalFighterTwo()
Range("H3").Value = Range("H3").Value + 2
Dim timeWS As Worksheet
Dim timeRange As Range
'Change "Fighter Two Logs" to whatever worksheet is your click log
Set timeWS = ThisWorkbook.Sheets("Fighter Two Logs")
'find the last cell in column E of your log
Set timeRange = timeWS.Range("E" & timeWS.Rows.Count).End(xlUp).Offset(1)
'Write which button was clicked in column E
timeRange.Value = Application.Caller
'Write the time in column F
timeRange.Offset(, 1).Value = Now()
End Sub
Sub EscapeFighterTwo()
Range("H4").Value = Range("H4").Value + 1
Dim timeWS As Worksheet
Dim timeRange As Range
'Change "Fighter Two Logs" to whatever worksheet is your click log
Set timeWS = ThisWorkbook.Sheets("Fighter Two Logs")
'find the last cell in column G of your log
Set timeRange = timeWS.Range("G" & timeWS.Rows.Count).End(xlUp).Offset(1)
'Write which button was clicked in column G
timeRange.Value = Application.Caller
'Write the time in column H
timeRange.Offset(, 1).Value = Now()
End Sub
Sub RunTimeFighterTwo()
Range("H5").Value = Range("H5").Value + 1
End Sub
Sub PenaltyFighterTwo()
Range("B6").Value = Range("B6").Value + 1
End Sub
Sub PenaltyXFighterTwo()
Range("F16").Value = Range("F16").Value + 1
Dim timeWS As Worksheet
Dim timeRange As Range
'Change "Fighter Two Logs" to whatever worksheet is your click log
Set timeWS = ThisWorkbook.Sheets("Fighter Two Logs")
'find the last cell in column I of your log
Set timeRange = timeWS.Range("I" & timeWS.Rows.Count).End(xlUp).Offset(1)
'Write which button was clicked in column I
timeRange.Value = Application.Caller
'Write the time in column J
timeRange.Offset(, 1).Value = Now()
End Sub