Re: Enum in macro generates compile error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 11/3/09 7:56 AM, in article
C71592AB.CD90%gene@xxxxxxxxxxxxxxxxxxxxxxxxxxx, "Gene Augustin"
<gene@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

MAC Powerbook G4, OS 10.5.6
Office 2004, Excel 2004 Version 11.5.3

I have a macro provided by an equipment manufacturer. It is supposed to work
on MAC. Mfr no help. The macro crashes with message "Compile Error Expected
Identifier" and the code is highlighted in red as noted here:

Public Enum DAQ_states 'red
stopped = 0
running = 1
End Enum 'red

Public DAQ_state As daq_states, DAQ_counter As Long
Maybe it is "Supposed" to work on a mac, but it obviously has never been
tested. The enum variable type is not supported in Mac VBA.

--
Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom

.



Relevant Pages