seboseszuk
New Member
- Joined
- Jun 4, 2011
- Messages
- 18
Greetings,
I use Mr.Excel's book:Excel 2007 page 481 and 482.
File name:clsEmployee, module: Class
Public EmpName as string
Public EmpId as string
Public EmpRate as double
Public EmpWeeklyHours as double
Public Function EmpWeeklyPay()dluble
EmpWeeklyPay= EmpRate* EmpHours
End Function
File name: clsEmployee, module1
Option Explicit
Dim Employee as clsEmployee
with Employee
.EmpName=" Tracy Syrstad"
.EmpId ="1651"
.EmpRate=25
.EmpHours=40
End with
End Sub
These modules create an error message.
Help will be appreciated.
Gabor
I use Mr.Excel's book:Excel 2007 page 481 and 482.
File name:clsEmployee, module: Class
Public EmpName as string
Public EmpId as string
Public EmpRate as double
Public EmpWeeklyHours as double
Public Function EmpWeeklyPay()dluble
EmpWeeklyPay= EmpRate* EmpHours
End Function
File name: clsEmployee, module1
Option Explicit
Dim Employee as clsEmployee
with Employee
.EmpName=" Tracy Syrstad"
.EmpId ="1651"
.EmpRate=25
.EmpHours=40
End with
End Sub
These modules create an error message.
Help will be appreciated.
Gabor