I want to use the UDF in excel template(.xlt) I have used Application.OnKey("^v","MyFunction");
i want to use separate function when user paste the the cell in excel ie MyFuction but when i defined function with in the thisworkbook.cs i wont work...
Thanks in advance..
This won't work. You need to define the function in VBA and call you .NET method from that VBA function, like explained here at the end: http://msdn.microsoft.com/en-us/magazine/cc163373.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.