Option Explicit
Public Enum pCube
pC_Tate = 10
pc_Yoko = 15
pc_Takasa = 7
End Enum
Public Sub Sample()
Dim cb1 As pCube
Dim cb2 As pCube
Dim cb3 As pCube
Dim myVolume As Long
cb1 = pc_Takasa
cb2 = pC_Tate
cb3 = pc_Yoko
myVolume = cb1 * cb2 * cb3
MsgBox myVolume
End Sub
|