How can I take an Excel macro (VBA) and have it available in all of my excel workbooks?
Is there any way to distribute it as a package I can just load/install?
Can the same be done for a button that this macro is assigned to?
Thanks
Related
I am trying to figure out ways to make worksheets into workbooks within Sharepoint library.
I have done with VBA to make multiple worksheets into workbooks within desktop.
Is there a method to do this through office script, or power automate?
And also make it user-friendly?
Thank you in an advance.
I have a VBA macro that loads data into the workbook from the database. Currently we share these workbooks with others using Sharepoint, but I want to see how to best schedule the VBA macro once a day for a handful of workbooks, so that the macro runs in each workbook and saves (refreshes) on the shared site.
Is there a way to do this? Perhaps using "office scripts", or OneDrive even?
I have a VBA macro enabled excel .xlsm file uploaded in oneDrive. The macros run automatically when you open the excel in desktop. Though we cannot operate on macros in online excel, will the auto macros get executed automatically if you open it online.
All the macros operate on excel cells, Is refreshing excel session thru excel graph API equivalent to open the excel?
This is the answer from Microsoft:
"Currently, you can't work with macros in Excel Online."
https://support.office.com/en-gb/article/Work-with-macros-in-Excel-Online-98784ad0-898c-43aa-a1da-4f0fb5014343
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_other-mso_online/macro-enabled-excel-files-in-excel-online/00e982dc-688a-47ee-abe7-4d1f01a4ca04
https://technet.microsoft.com/en-us/library/excel-online-service-description.aspx
How can I write macro in Excel that will work (to run with shortcut) on any excel document which I will open?
Is this possible?
You need to add your macros to Personal.xlsb in order to make them available to all the excel files. Choose Personal Macro Workbook in Record Macro dialog to do this quickly.
Source: http://office.microsoft.com/en-in/excel-help/copy-your-macros-to-a-personal-macro-workbook-HA102174076.aspx
What is the easiest way to share VBA code via a module, amongst different workbooks, without writing an addin?
You can save it to your Personal Macro Workbook.
Click 'Record Macro' and select 'Personal Macro Workbook' from the Store macro in: drop-down.