Hello!
The following code produces a "Compile error:Object required". However, i don't see where an argument might be missing. I tried the same code without the 'Dim' and 'Set' (when are they required anyway? i have no clue...), then i get a "ByRef type mismatch" error.
Can anyone help? I guess from the above questions it became clear that i am a beginner (for VBA, not otherwise). Please explain why the error happens and what's the correct way to fix it. Please do no completely rewrite the code, because in that case i probably will not learn the lesson that is hidden in this error.
The error happens in this line:
However, if i remove the 'Set', the error moves a little forward toPlease Login or Register to view this content.
Remove that 'Set' and the error moves toPlease Login or Register to view this content.
Remove this 'Set' and the error change to the type mismatch on 'faAxis' in this line:Please Login or Register to view this content.
Questions:Please Login or Register to view this content.
-What do these error messages mean?
-Why do these errors appear?
-Why do they appear on itemCount, Export and faAction, but not on faItem or faAxis?
-Is there an easy solution to the problem?
Thank you,
Hinnerk
Code:
Please Login or Register to view this content.
Bookmarks