-
Notifications
You must be signed in to change notification settings - Fork 0
/
RibbonButtons
61 lines (52 loc) · 1.84 KB
/
RibbonButtons
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
Sub New_Record(ByVal control As IRibbonControl)
Range("OH10").Select
End Sub
Sub Load_Record(ByVal control As IRibbonControl)
' Make a routine to select a record
' Currently you must copy and Paste the record you want into the Buffer
Sheets("Log").Select
If Range("A3") = "Clear" Then
MsgBox ("Buffer Empty, Load Canceled")
ElseIf Range("A3") = "Locked" Then
MsgBox ("Record in Buffer is Locked, Loading as Read Only")
MoveFromBuffer
Sheets("Design Evaluation").Select
Range("A1").Select
Else
MoveFromBuffer
MsgBox ("Buffer Loaded to Design Sheet")
Sheets("Design Evaluation").Select
Range("A1").Select
End If
End Sub
Sub Copy_Record(ByVal control As IRibbonControl)
MsgBox ("Function to Copy a Record has not been added yet")
End Sub
Sub Protect_Record(ByVal control As IRibbonControl)
' Just a Routine to check if the Buffer is locked, needs function to "freeze" a Design
Sheets("Log").Select
If Range("A3") = "Locked" Then
MsgBox ("Buffer Is Locked")
Else
MsgBox ("Buffer Is Not Locked")
End If
End Sub
Sub Save_Record(ByVal control As IRibbonControl)
Sheets("Log").Select
If Range("A3") = "Clear" Then
MoveToBuffer
MsgBox ("Design Sheet Loaded to Buffer. Records Still Manually Switched by Copy and Paste of Rows.")
Else
MsgBox ("Buffer not Cleared and Ready for a New Record. Save Canceled.")
End If
' Make a Routine to Copy and Clear the Buffer to the right record location
End Sub
Sub Next_Record(ByVal control As IRibbonControl)
MsgBox ("Next Record Button Not Started")
End Sub
Sub Prev_Record(ByVal control As IRibbonControl)
MsgBox ("Prev Record Button Not Started")
End Sub
Sub Make_Drawing(ByVal control As IRibbonControl)
MsgBox ("Draw Prints Button Not Started")
End Sub