-
Notifications
You must be signed in to change notification settings - Fork 1
/
mActMain.bas
69 lines (55 loc) · 1.82 KB
/
mActMain.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
Attribute VB_Name = "mActMain"
Public StartExcelTime As Single
Public vIsSVEnabled As Boolean
Public isHypShowPov As Boolean
Sub p_in2plnShowPanel(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
Application.EnableCancelKey = xlErrorHandler
X = HypExecuteMenu(Empty, "Smart View->Panel")
X = 0
Application.Visible = False
Err.Clear
Application.Visible = True
Application.EnableCancelKey = xlInterrupt
' Dim vtGrid As Variant
' Dim server As Variant
' Dim user As Variant
' Dim app As Variant
' Dim db As Variant
' Dim provider As Variant
' Dim conn As Variant
' Dim url As Variant
' sts = HypRetrieve(Empty)
' sts = HypGetSourceGrid(Empty, vtGrid)
' sts = HypGetConnectionInfo(server, user, pwd, app, db, conn, url, provider)
End Sub
Sub p_in2plnBackOutl(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
Dim vCurrSheetName
vCurrSheetName = ActiveSheet.Name
If (InStr(UCase(vCurrSheetName), "OTL") > 0) Then
If CheckIfSheetExists(vLastSheetName) Then
On Error Resume Next
Worksheets(vLastSheetName).Activate
Err.Clear
vLastSheetName = ""
Exit Sub
End If
Exit Sub
End If
vLastSheetName = vCurrSheetName
If CheckIfSheetExists("OTL") Then
On Error Resume Next
Worksheets("OTL").Activate
Err.Clear
Exit Sub
End If
End Sub
Sub p_in2plnFreezePanes(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
ActiveWindow.FreezePanes = Not ActiveWindow.FreezePanes
End Sub
Sub p_in2plnAutoFilter(ByVal vIRibbonControl As IRibbonControl)
On Error Resume Next
Selection.AutoFilter
End Sub