Is it possible to have Excel add-in detect if any workbook is being closed? [closed] - excel

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 days ago.
Improve this question
For a workbook itself, I can put code inside a Workbook.BeforeClose. But is there a way I can have my add-in listen for a workbook.close on any of the workbooks that might be open? I have the add-in do most of the work, with very little code in the workbooks. Thanks!

Related

Qtdesigner buttons layout [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 19 days ago.
Improve this question
How can I put these buttons in the layout to don't change their position because when I try I get something like this

Application.WorkbookBeforeClose event [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have an excel addin which has runs a procedure when closing a workbook.
Is there a way to bypass this procedure using vba code if I want to write another macro that opens a workbook and closes it?
In the macro that is currently running, you can temporarily disable events before closing the other workbook to prevent the WorkbookBeforeClose event (and any other events) from running:
Application.EnableEvents = False
Remember to turn them back on afterwards and also in error handling.

Interactive objects embedded in excel viewed in share point [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to create interactive objects that appear in an excel file viewed via share point. I am told I am not able to use VBA. What alternatives can I use? Please note the viewed via share point part.
Many thanks for any help given
Mrhopko
None. Excel files displayed via SharePoint are rendered as HTML tables, so no VBA possible.
Open the files in Excel to have interactivity, otherwise Excel is not the right technology.

What is the best way to share/distribute Excel macro? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I wrote the macro in Excel and want to distribute it to the users. Once opened I want the macro to add itself as a toolbar and then to be always visible whenever the Excel is opened. So the macro can be conveniently accessed used from all workbooks.
IMHO, the easiest way is to create an add-in with your code and give it to the users.
See this link on ozgrid to learn how to build addins.
For Sub's tied to toolbars an Addin - as said by JMax - would be my choice. For formulae specific to your business a regular empty Excel file with one or more modules containing Function Xxx(), placed in the Autostart folder would be sufficient.
A server directory which is added to the user's path of Autostart folders is an easy way to auto-distribute formulae.
I am using the latter for instance for IP address calculations

What is the best way to create user help documentation for an Excel VBA solution? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
VBA solutions can vary widely in size.
I would like to add user help documentation to all solutions but the level of effort to create and deploy the help needs to match the size of the solution.
You should check the VBA version of MZ-Tools. It is an add-in for VBA that can automatically generate documentation from your code (function name, parameters, comments, subject, etc.). You can also use it to automatically generate line numbers, onError labels, etc. More on the automatic documenting feature can be found here.
It is free, easy, and very efficient. Once you notice how much you save time by using it, please do like me: donate.
You may wish to consider HTML Help. It allows you to produce help files that are similar to standard Microsoft help. It is not particularly difficult to use, for the most part.

Resources