I have an Excel add-in I wrote in VBA, let’s call it MyAddin.xlam.
I have set the project name as MyAddin.
When I open a second project and choose Tools->References..., MyAddIn appears just fine. Everything works. That’s great.
But.. for purely aesthetic reasons, I would like the listing to appear as My Addin in the list of References.
Pretty much everything available in the list of potential References has spaces in the name.
But if I try to rename my project to have a space in the name, VBA doesn’t allow me to do that.
So, silly as the question may sound, is there any way I can get spaces into the displayed name of my VBA add-in in the “References” list?
I’m perfectly willing to accept the answer “This isn’t possible in VBA; you can only put spaces in the reference name if you build the add-in with another language”, but I’m wondering if I am missing something simple.
Thanks!
EDIT, Addendum: Essentially, my question is: Is there a way to get the “displayed name” to be different from the project name, which doesn’t care about filenaming/object naming restrictions?
Yup you are right. VBA will not let you insert spaces in the Project Name in the Properties window.
If you try to, it will give you an error (see snapshot)
Well No Luck with VB.net as well. I added the space and it converted it to an underscore in Excel. let me test it more and get back to you…
SNAPSHOT
FOLLOWUP
Phew Finally! Yes it is possible in VB.Net. Let me know if you want more details?