
Please ignore the github reference at the and of the video. i already attached the files in this lecture
Discover building Excel VSTO add-ins with Visual Studio Tools for Office, using C# or VB.NET, leveraging the Excel object model, ribbons, task panes, and auto updates via ClickOnce.
Explore the three types of add-ins in Excel VSTO, including Excel edits, automation edits, and Webdings. Learn to use the developer menu and build Webdings with HTML, JavaScript, and CSS.
Discover the .NET framework and its three core components: languages, CLR, and libraries. Learn how C#, Visual Basic .NET, and others drive execution under the CLR, with libraries and versioning.
Install Visual Studio Community edition, enable Office SharePoint development, and learn the basics of Visual Basic.NET and C#, creating simple console and WinForms apps.
Learn to create a new Visual Basic console application in Visual Studio, run a hello world program, and navigate the project and solution workflow.
This lecture introduces visual basic.net as a fully object oriented language, contrasting it with visual basic six and outlining modules, classes, and types.
Learn Visual Basic in Visual Studio, with try/catch error handling, lists from System.Collections.Generic, for each loops, string contains checks, and zero-based arrays.
Explore the basics of C# within the .NET platform, and compare it to Visual Basic .NET. Learn how C# 4 introduced optional parameters and interop options for Excel VSTO development.
Discover the Excel object model and core objects—application, workbook, worksheet, and range—through Interop API, Globals access, and document versus application-level add-ins.
Explore ranges in Excel VSTO add-ins, including active cell value retrieval, selection behavior, value versus value2, casting, and null reference handling with dynamic type and IntelliSense.
Explain document level add-ins in Excel VSTO, compare with application level projects, and show how to add a ribbon, create an action pane (task pane), and host a user control.
Take a break to sharpen your Visual Studio and C-sharp skills for Excel VSTO add-ins, harnessing the power of the .NET environment with official Microsoft documentation.
Learn to create and place ribbons in Excel VSTO add-ins using the visual designer or XML methods, and customize with tabs, groups, and buttons including the data menu.
Explore ribbon controls in Excel VSTO add-ins, including group and box containers, button group differences, separators, and horizontal or vertical alignment.
Explore how to design pop up menus and galleries in Excel VSTO ribbons, configure menu items, dropdowns, and split buttons, and handle click events to open files.
Learn to add resources to your project, including image, ICO, text, audio, and video files, and assign them to controls with image properties, show image, and image IDs.
Explore how to create dialog launchers on the ribbon, open setting forms, and use Windows forms to manage user, password, and sheet settings with automatic save on form close.
Create and open a custom task pane in Excel VSTO with a user control and ribbon button, populate a combo box, and write the selected value to the active cell.
Learn to use third party libraries via the Nugget package manager, focusing on the closed XML library to simplify Excel VSTO tasks, enable faster performance, and write less code.
Review the closedXML library on GitHub, study its samples and wiki, and learn to manipulate Excel workbooks both in memory and when closed, with the using block and its APIs.
This lecture builds a small closedxml example with a button that reads data and inserts it into an active worksheet, creating a workbook, a data table, and saving the file.
Explore creating user defined functions with automation add-ins in Excel, by building a class library, enabling com interop, and exposing functions like sum and count of words to Excel.
Master writing udfs with automation add-ins in excel vsto by overwriting unwanted object methods, building and referencing function projects in visual studio, and enabling auto installation of the automation engine.
Discover how to build XLL-based UDFs with Excel DNA in Visual Studio by creating a class library, installing Excel DNA, and exposing functions with ExcelFunction and ExcelArguments attributes.
Develop xll-based udfs with excel dna part 2 by enabling tooltips and IntelliSense through a dedicated integration class, mastering range references, interior color, and release build packaging.
Compare ClickOnce deployment with Windows Installer for Excel VSTO add-ins, noting per-user versus per-machine install, lack of automatic updates, and publishing and setup steps.
Links you can find more info on releasing objects
https://learn.microsoft.com/en-us/visualstudio/vsto/calling-code-in-vsto-add-ins-from-other-office-solutions
https://www.add-in-express.com/creating-addins-blog/2013/11/05/release-excel-com-objects/
https://www.add-in-express.com/creating-addins-blog/2011/11/04/why-doesnt-excel-quit/
https://www.add-in-express.com/creating-addins-blog/2008/10/30/releasing-office-objects-net/
https://stackoverflow.com/questions/158706/how-do-i-properly-clean-up-excel-interop-objects
https://stackoverflow.com/questions/17130382/understanding-garbage-collection-in-net/17131389#17131389
https://stackoverflow.com/questions/25134024/clean-up-excel-interop-objects-with-idisposable
https://stackoverflow.com/questions/29067714/vsto-manipulating-com-objects-one-dot-good-two-dots-bad
http://www.siddharthrout.com/index.php/2018/01/12/vb-net-two-dot-rule/
https://www.breezetree.com/blog/common-mistakes-programming-excel-with-c-sharp
https://www.codeproject.com/Tips/162691/Proper-Way-of-Releasing-COM-Objects-in-NET
https://stackoverflow.com/questions/3937181/when-to-use-releasecomobject-vs-finalreleasecomobject/a>
https://stackoverflow.com/questions/1827059/why-use-finalreleasecomobject-instead-of-releasecomobject
https://support.microsoft.com/en-us/help/317109/office-application-does-not-exit-after-automation-from-visual-studio-n
Learn to build an Outlook add-in using the Outlook Interop API, create and send mail with a MailItem, and release COM objects via garbage collection.
You can find the utility package "VolkansUtility" here: https://github.com/VolkiTheDreamer/dotnet/tree/master/Ugulamalar/VolkansUtility
Learn to call vsto code from vba and vice versa by exposing dotnet classes as com visible components and enable cross-environment data read and write in Excel.
Open external apps from a ribbon in Excel VSTO using the process class and start info. Pass parameters to notepad, calculator, or a python file and monitor exit codes.
What is VSTO?
VSTO, short form of Visual Studio Tools for Office, is a technology that enables us to make more professional-looking and more performanced add-ins compared to Excel Add-ins by taking advantage of the .Net framework. VSTO add-ins are also known as COM Add-ins, if you are not familiar with javascript, they are the last point you should come to. However, if you want to see the differences between the state-of-the-art web add-ins and VSTO, there are lots of comparison pages on the net.
Why you need it?
You have become the hero of your department thanks to VBA. Now, it is time to set sail to deep waters. Here are some reasons why you should choose VSTO.
If you don't want to deal with distributing your add-in to everyone one by one and explain them how to install it
If you want that any change you make in your add-in to be automatically updated for everyone
If you want to take advantage of the power of the .Net framework (We will discover them over time)
If you don't want your code to be seen by anyone
If you want to create something for commercial purposes
What do you need?
Excel Object Model and preferably VBA knowledge
Visual Studio (We'll see how to install it)
VBNet or C# (we'll learn how much is useful here, it's up to you to improve)