Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need to develop functions in VB.net for using them in VBA Excel. I don't have Admin permissions on my computer, so I'm looking for a solution to generate tlb file from my dll without needed admin right.

That's maybe not the right way to do it, I'm open to any advice.

Thanks a lot.
Posted

Please see, for example, https://richnewman.wordpress.com/2007/04/15/a-beginner’s-guide-to-calling-a-net-library-from-excel[^].

It has nothing to do with your system permissions, whatsoever.

—SA
 
Share this answer
 
Comments
Member 11722637 18-Aug-15 10:48am    
It doesn't work regarding that VS can't write the registry key
Sergey Alexandrovich Kryukov 18-Aug-15 10:51am    
What does not work, reading a manual?
And you did not ask anything about a registry key, but it's apparent that you can do it, and yes, it will require elevated permission, no matter what.

You cannot get good answers to bad questions. :-(

—SA
You're probably out of luck. To use your code via VBA you need to give your .net components COM interfaces and then register those interfaces using regsvr32. If you don't have admin or can't change registry permissions you probably won't be able to do this.

http://stackoverflow.com/questions/569218/what-permissions-rights-are-needed-to-run-regsvr32-s-c-myocx-ocx[^]
 
Share this answer
 
Comments
Member 11722637 18-Aug-15 10:29am    
Ok, that is what I think. Therefore, how does DNA work on my computer to generate those files,
F-ES Sitecore 18-Aug-15 10:39am    
What do you mean by DNA?
Member 11722637 18-Aug-15 10:47am    
Talking about that http://excel-dna.net/2014/03/21/tutorial-com-server-support-for-vba-integration/
It is said "Excel-DNA does not require administrative access"
As per my experience, you have to register custom COM dll via regasm tool[^] to be able to use it on non-development system. To run regasm tool you need to have admin permissions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900