-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmActAdditionalService.bas
105 lines (64 loc) · 2.36 KB
/
mActAdditionalService.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Attribute VB_Name = "mActAdditionalService"
Option Explicit
Sub p_in2plnConnections(ByVal vIRibbonControl As IRibbonControl) '(ByVal vIRibbonControl As IRibbonControl, ByRef vPressed)
On Error Resume Next
Application.EnableCancelKey = xlErrorHandler
vIsSVEnabled = Not vIsSVEnabled
HypSetMenu (vIsSVEnabled)
X = 0
Err.Clear
Application.EnableCancelKey = xlInterrupt
End Sub
Sub p_in2plnPOVManager(ByVal vIRibbonControl As IRibbonControl) '(ByVal vIRibbonControl As IRibbonControl, ByRef vPressed)
On Error Resume Next
Application.EnableCancelKey = xlErrorHandler
isHypShowPov = Not isHypShowPov
X = HypShowPov(isHypShowPov)
'X = HypMenuVPOVManager()
Err.Clear
Application.EnableCancelKey = xlInterrupt
End Sub
Sub p_in2plnOptions(ByVal vIRibbonControl As IRibbonControl)
On Error GoTo ErrorHandler
ActiveSheet.Cells(1, 1).Select
If ActiveSheet Is Nothing Then
MsgBox "active sheet is not determinated "
GoTo l_exit
End If
Application.EnableCancelKey = xlErrorHandler
X = HypMenuVOptions()
Application.EnableCancelKey = xlInterrupt
If X <> 0 And X <> -55 Then GoTo ErrorHandler
l_exit:
Exit Sub
ErrorHandler:
'Call p_ErrorHandler(x, "p_Options")
End Sub
Sub p_in2plnSheetInfo(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
p_execSVMenu ("Smart View->Sheet Info")
End Sub
Sub p_in2plnsetAliasTable(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
p_execSVMenu ("Planning Ad Hoc->Change Alias")
End Sub
Sub p_in2plnHypMenuVFunctionBuilder(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
Call p_CheckConnection
Call p_setExcelCalcOff
X = HypMenuVFunctionBuilder()
Call p_setExcelCalcOn
End Sub
Sub p_in2plnAbout(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
MsgBox "Hyperion Planning Custom Ribbon Panel " _
& vbNewLine & " developer: [email protected] "
X = HypMenuVAbout
ThisWorkbook.FollowHyperlink "https://github.com/er77/in2planning/issues"
Err.Clear
End Sub
Sub p_in2plnAbout2(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
ThisWorkbook.FollowHyperlink "http://amegatech.ru/services.html"
Err.Clear
End Sub