-
Notifications
You must be signed in to change notification settings - Fork 2
/
WorksheetClass.cls
55 lines (40 loc) · 1.2 KB
/
WorksheetClass.cls
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "WorksheetClass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'@Folder("TableManager.Worksheets")
Option Explicit
Private pWorksheet As Worksheet
Private pName As String
Private pWorksheetEvent As EventClass
Private Sub Class_Initialize()
Debug.Assert Initializing
Set pWorksheetEvent = New EventClass
End Sub ' Class_Initialize
Public Property Get Worksheet() As Worksheet
' Only called from WorksheetsClass
Set Worksheet = pWorksheet
End Property
Public Property Set Worksheet(ByVal WS As Worksheet)
' Only called from WorksheetsClass
Set pWorksheet = WS
End Property
Public Property Get WorksheetEvent() As Object
Set WorksheetEvent = pWorksheetEvent
' Only called from WorksheetsClass
End Property
Public Property Set WorksheetEvent(ByVal WS As Worksheet)
' Used in WorksheetsClass, XLAM_Module
Set pWorksheetEvent = WS
End Property
Public Property Get Name() As String
Name = pName
End Property
Public Property Let Name(ByVal NM As String)
pName = NM
End Property