Sharing VBA modules across MS Office Applications

后端 未结 4 1574
野趣味
野趣味 2021-01-22 08:29

I have a substantial bank of VBA modules written in an Excel 2010 add-in. Some of these are specific to Excel, but many are more general. For example one takes a part number an

4条回答
  •  攒了一身酷
    2021-01-22 09:10

    VB6 is best way. VB6 is still supported for compiled programs. The IDE been tested and found to work up to Windows 10 (32 bit only) by MS but is unsupported.

    If you want to convert to vbscript you can use wsc files instead of a dll.

    From Script Components Overview

    Windows® Script Components are an exciting new technology that allows you to create powerful, reusable COM components with easy-to-use scripting languages such as Microsoft® Visual Basic® Scripting Edition (VBScript) and Microsoft® JScript®.

    Make one, make a type library, set a reference to typelibrary in Word and Excel.

提交回复
热议问题