tags:

views:

35

answers:

1

Type ABFator

a As Single
b As Sinlge

End Type

Dim ABFactorArr(8) As ABFactor

'Basically i want to declare an array of 8 ABFactos which i can then access

I do this and the complier gives error user defined type not defined

Thanks

A: 

Spelling mistake? Missing c?

  • You've defined the type as ABFator with no c
  • and you've put the array as ABFactor with a c

You've also mistyped Single in your Type definition

Alternatively perhaps you need to make the Type Public, in case you are defining it in one module and using it in another?

(Please copy and paste the code into your questions in future, as you've spelt ABFactor three different ways in your question!)

MarkJ
sorry guys i think i need some cofee
jaminator