• <bdo id='K0W8b'></bdo><ul id='K0W8b'></ul>
  • <small id='K0W8b'></small><noframes id='K0W8b'>

  • <tfoot id='K0W8b'></tfoot>

      1. <i id='K0W8b'><tr id='K0W8b'><dt id='K0W8b'><q id='K0W8b'><span id='K0W8b'><b id='K0W8b'><form id='K0W8b'><ins id='K0W8b'></ins><ul id='K0W8b'></ul><sub id='K0W8b'></sub></form><legend id='K0W8b'></legend><bdo id='K0W8b'><pre id='K0W8b'><center id='K0W8b'></center></pre></bdo></b><th id='K0W8b'></th></span></q></dt></tr></i><div id='K0W8b'><tfoot id='K0W8b'></tfoot><dl id='K0W8b'><fieldset id='K0W8b'></fieldset></dl></div>

        <legend id='K0W8b'><style id='K0W8b'><dir id='K0W8b'><q id='K0W8b'></q></dir></style></legend>

        通过互操作为 Microsoft Access 创建宏

        时间:2023-08-24

          <legend id='L7Yex'><style id='L7Yex'><dir id='L7Yex'><q id='L7Yex'></q></dir></style></legend>
              <tbody id='L7Yex'></tbody>

          • <i id='L7Yex'><tr id='L7Yex'><dt id='L7Yex'><q id='L7Yex'><span id='L7Yex'><b id='L7Yex'><form id='L7Yex'><ins id='L7Yex'></ins><ul id='L7Yex'></ul><sub id='L7Yex'></sub></form><legend id='L7Yex'></legend><bdo id='L7Yex'><pre id='L7Yex'><center id='L7Yex'></center></pre></bdo></b><th id='L7Yex'></th></span></q></dt></tr></i><div id='L7Yex'><tfoot id='L7Yex'></tfoot><dl id='L7Yex'><fieldset id='L7Yex'></fieldset></dl></div>

            <small id='L7Yex'></small><noframes id='L7Yex'>

            • <bdo id='L7Yex'></bdo><ul id='L7Yex'></ul>

                  <tfoot id='L7Yex'></tfoot>
                  本文介绍了通过互操作为 Microsoft Access 创建宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  是否可以使用 C# 使用 Microsoft Access 中的 Interop 库以与 Word、Excel 或 PowerPoint 类似的方式创建新宏?在其他应用程序中,您可以访问 Microsoft.Vbe.Interop._VBComponent,它允许您通过 DocumentWorksheetPresentation 类.看起来 Access 没有类似的东西.Access 有一个 AllMacros 列表,但它似乎是只读的.我知道如何在项目中执行宏,但我需要能够动态添加宏.如果有人能指出我正确的方向,我将不胜感激.

                  Is it possible to create a new macro using C# using the Interop library in Microsoft Access in a similar fashion as Word, Excel, or PowerPoint? In the other applications, you have access to Microsoft.Vbe.Interop._VBComponent, which allows you to inject new macros, through the Document, Worksheet, or Presentation classes. It doesn't look like Access has anything similar to this. Access has an AllMacros list, but it appears to be read-only. I know how to execute the macro once it's in the project, but I need to be able to add macros dynamically. I would greatly appreciate anyone that could point me in the correct direction.

                  推荐答案

                  取自 answers.microsoft.com:

                  Taken from answers.microsoft.com:

                  Access 中的宏是一个特殊的数据库对象,这与其他 Office 应用程序中的宏只是一个不带参数的 VBA 过程不同.据我所知,您无法以编程方式创建 Access 宏. -HansV MVP(2011 年 4 月 27 日)

                  same question 表示您可以使用 VB 创建新的代码/VBA 对象可扩展性库.

                  There is another answer posted at the same question that says you can create new code/VBA objects using the VB Extensibility Library.

                  这篇关于通过互操作为 Microsoft Access 创建宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在预构建事件上运行 Visual Studio 2008 宏 下一篇:C# 拖放在 Windows 7 上不起作用

                  相关文章

                  最新文章

                    <tfoot id='PUUej'></tfoot>

                      <small id='PUUej'></small><noframes id='PUUej'>

                    1. <legend id='PUUej'><style id='PUUej'><dir id='PUUej'><q id='PUUej'></q></dir></style></legend>
                        <bdo id='PUUej'></bdo><ul id='PUUej'></ul>
                      <i id='PUUej'><tr id='PUUej'><dt id='PUUej'><q id='PUUej'><span id='PUUej'><b id='PUUej'><form id='PUUej'><ins id='PUUej'></ins><ul id='PUUej'></ul><sub id='PUUej'></sub></form><legend id='PUUej'></legend><bdo id='PUUej'><pre id='PUUej'><center id='PUUej'></center></pre></bdo></b><th id='PUUej'></th></span></q></dt></tr></i><div id='PUUej'><tfoot id='PUUej'></tfoot><dl id='PUUej'><fieldset id='PUUej'></fieldset></dl></div>