D
David Gerstman
I'm trying to set up a class in the VBE.
It doesn't make a difference if I try to include it in the regular or in a
class module,
when I write the following (for example)
Class budget
Public food As Currency
Public car As Currency
Public fun As Currency
end class
And hit return the "end class" gets flagged and I get
"Compile error:
Expected: If or Select or Sub or Function or Property or Type or With or
Enum of end of Statement."
What am I doing wrong? (I've also cut and pasted code for a class from MSDN
and gotten the same error.)
Or is there something wrong with my installation of VBA?
David
It doesn't make a difference if I try to include it in the regular or in a
class module,
when I write the following (for example)
Class budget
Public food As Currency
Public car As Currency
Public fun As Currency
end class
And hit return the "end class" gets flagged and I get
"Compile error:
Expected: If or Select or Sub or Function or Property or Type or With or
Enum of end of Statement."
What am I doing wrong? (I've also cut and pasted code for a class from MSDN
and gotten the same error.)
Or is there something wrong with my installation of VBA?
David