Stand Alone Excel Macro

后端 未结 1 784
难免孤独
难免孤独 2021-01-05 12:17

I have a report that I run from a system once a week, and the data is exported into an excel document. I have set up the tool that exports the data to excel to do a decent

1条回答
  •  生来不讨喜
    2021-01-05 12:46

    ...and be able to call it after I open this file?...

    You have 2 very good options

    1) Write and save your macro to Personal file. See this link for more information

    Topic: Deploy your Excel macros from a central file

    Link: http://office.microsoft.com/en-us/excel-help/deploy-your-excel-macros-from-a-central-file-HA001087296.aspx

    Quote from the above link:

    Have you ever wanted to use that really handy macro in all of your Excel worksheets? You can. This column explains how to place your macros in a file called personal.xls and make them available each time you start Excel.

    2) Create an Add-In

    Topic: Creating an Excel Add-in

    Link: http://msdn.microsoft.com/en-us/library/aa140936%28v=office.10%29.aspx

    Quote from the above link:

    You create a Microsoft® Excel add-in by creating a workbook, adding code and custom toolbars and menu items to it, and saving it as an Excel add-in file.

    0 讨论(0)
提交回复
热议问题