[quote user="Barry Lothian"]The debug highlights the red line[/quote]
Put a VBA break point on that line. Run your app. and inspect the value of your variables when it hits that break point.
- Does m_strData(N, 0) contain a valid Double value?
- Does cellName contain a valid String? Is it the name of something in your cell library?
- Has origin been calculated correctly? Are its XYZ values reasonable?
- Is cellScale a reasonable value: not zero, not negative?