I wonder if anybody can help me solve this puzzle.
I have a colleague who uses an add-in of mine, and he gets a problem with references. When he runs a macro (via a toolbutton) from the add-in, which calls some code that includes the "Chr()" function, he gets an error message ("Can't find function or library"). If I go through his references and check the "Microsoft Visual Basic for Application Extensibility" reference, it then runs OK without an error.
When he closes Excel and re-opens it, he again has the problem - i.e. when I look at his references again, I find that it is unchecked again. So his system is not retaining the selected state. As far as I can tell however, my system does retain reference selections. I have no idea what the difference between his setup and mine might be (especially as we nominally have systems with common images provided by the same IT group.
Furthermore, when I look at my references, I find that I do not need to have "Microsoft Visual Basic for Application Extensibility" for "Chr" to work.
So, is "Chr" part of the MSVBA ext library or not? If it is, how come my system does not complain. If not, why does his?
Secondly, how do I get his system to retain selected references?
Finally, is there any way the add-in can check the state of the refs on startup and make sure that any necessary ones are checked?
I would really appreciate any help or suggestions on this one. If it were a coding problem per se, I'd at least know where to start, but I'm groping in the dark in this case.
Thanks,
Tony
I have a colleague who uses an add-in of mine, and he gets a problem with references. When he runs a macro (via a toolbutton) from the add-in, which calls some code that includes the "Chr()" function, he gets an error message ("Can't find function or library"). If I go through his references and check the "Microsoft Visual Basic for Application Extensibility" reference, it then runs OK without an error.
When he closes Excel and re-opens it, he again has the problem - i.e. when I look at his references again, I find that it is unchecked again. So his system is not retaining the selected state. As far as I can tell however, my system does retain reference selections. I have no idea what the difference between his setup and mine might be (especially as we nominally have systems with common images provided by the same IT group.
Furthermore, when I look at my references, I find that I do not need to have "Microsoft Visual Basic for Application Extensibility" for "Chr" to work.
So, is "Chr" part of the MSVBA ext library or not? If it is, how come my system does not complain. If not, why does his?
Secondly, how do I get his system to retain selected references?
Finally, is there any way the add-in can check the state of the refs on startup and make sure that any necessary ones are checked?
I would really appreciate any help or suggestions on this one. If it were a coding problem per se, I'd at least know where to start, but I'm groping in the dark in this case.
Thanks,
Tony