怎样用vc、vb、delphi、bcb、...为excel创建新的函数?
不是用vba
谢谢
感谢您使用微软产品。
如果您的考虑是保护函数代码, 您可以考虑开发一个COM Add-in, 用VBA调用 COM Add-in中的函数。
Microsoft Excel 2000 cannot call a function directly in a COM Add-in from a
worksheet cell formula. However, you can create a Visual Basic for Applications
(VBA) wrapper for the COM Add-in function so that the function may be called
indirectly.
- Build a COM Add-in for Microsoft Excel that sets the Object property of the
Add-in and exposes a public function.
- Build an Excel Add-in (xla) that calls the public function in the COM Add-in.
- Call the COM Add-in function indirectly from a formula in a worksheet cell.
您可以参考该文档:
HOWTO: Use a COM Add-In Function as an Excel Worksheet Function[OffDev]
ID: Q256624
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q256624&
- 微软全球技术中心 DTA技术支持
本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款 (http://www.csdn.net/microsoft/terms.shtm)。