N
N
Nikolai Chuprik2020-03-16 19:28:17
Visual Basic
Nikolai Chuprik, 2020-03-16 19:28:17

What causes Error 451?

I'm not an expert in VBA , but I had to face it. I don't understand anything. Normal plPath.Coordinates array, but I can't get its first element.

MsgBox TypeName(plPath.Coordinates)   ' Double
MsgBox UBound(plPath.Coordinates)   ' 7
MsgBox IsArray(plPath.Coordinates)   ' True
MsgBox plPath.Coordinates(0)   ' Ошибка 451:  Property let procedure not defined and property get procedure did not return an object


When tracing in Watch, the same thing is shown. I don't get it at all, how come?

5e6fa90eb15de580026301.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2020-03-17
@BasiC2k

In VBA, you can declare in the code - from which element the array numbering will begin:
Option Base 1
Check if there is such a line in the code. In this case, the numbering starts from 1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question