Visual Studio 2013 seems to offer the ability to create C# enabled workbooks (not add-ins or templates). I don't see anyone talking about it online. My guess is that it is used to create a workbook where C# replaces VBA. I'm wondering if I can use this to create a workbook that publishes live data from my C# program to the spreadsheet. I'm also wondering how to manually add a spreadsheet like this to a project.
Related
maybe someone can help me with the following problem.
I create a new Excel Ribbon with Visual Studio 2017. When I run the solution out of Visual Studio everything works fine. Excel is open and the Ribbon and buttons give no exception. So far so good.
Now I need to create a .msi file, so that the solution can be roll out to the customer. Therefore I add the Visual Studio Installer projects to my VS and create a setup project. This is also working fine for, say a normal HalloWorld.exe on the Console. But when I do it for the Excel Addin it does not work. I get the .msi file, I can install it, but I never see it in Excel. I can also not see the Addin in Excel on File->Options->Addins->Com-Add-Ins.
Did anybody give me a clue what is needed, what need to be add or to change to install the Excel Addin to other users?
Best Regards,
Sebastian
I have developed a simple Excel 2010 document level customisation based on the c# project template provided with VS 2017 community.
Unfortunately I don't have much experience on Office dev but a solid experience with VBA.
It all went ok to code, debug and run the solution till the moment I tried to open an Excel file at the same moment VS had my solution opened.
The document level customisation Excel workbook disappeared. I could not get it back whether running from VS nor opening it from a folder.
I tried cleaning up the solution, uninstalling the documents (they are installed as part of the system with VSTO).
Any clue on the issue ?
IN EXCEL you can not open two file which have same name a.xls and a.xls.
"Sorry, Excel can't open two workbooks with the same name at the same time."
So; If you open a file in EXCEL, you can not open it in EXCEL Desinger.
And in some cases; if you want to open document in EXCEL; EXCEL Desinger in Visual Studio Crashes; And Desinger Generated codes lost. WHEN you reopen that solution you get errors. In order to prevent errors; Backup your Improvments or use TFS
Using WINDOWS 10, Visual Studio 2015, EXCEL 2016 And Visual Studio Tools For Office 2010 I have crash problem. And another problems that I can not properly solve.
Reverting EXCEL to 2013 resolve some problems for me. I do not see this problem on my old PC which I use; WINDOWS 8.1, VS 2015, EXCEL 2013 And VSTO 2010
Also; WINDOWS 10 And Security Updates are problematic if you use VSTO
I want to build an excel add-in which is application level. I followed the instructions to create a project on MSDN.
I don't want to create a COM add-in, I want an Excel plugin. The plugin we create as .xlam file and code it in VBA.
Please suggest me what to do. How to deploy the .vsto file and patch up with the .xlam file?
A VSTO Office add-in is a COM add-in by definition. That is how Microsoft implemented it. They have built a bridge from .NET to the native Microsoft Office code using COM.
If you want an XLAM add-in, as you say, you need to go through this reference, which doesn't involve creating a Visual Studio VSTO project.
I need to create a custom Excel 2010 ribbon (document level).
I have no Visual Studio, but have Visual C# 2010 express
If this is possible, please give me some gudelines.
You can customize the ribbon in Excel or any Office application without using Visual Studio, instead using a combination of XML and VBA.
A good starting-point for customizing the ribbon: http://msdn.microsoft.com/en-us/library/office/aa338202%28v=office.12%29.aspx (The title says Office 2007 but it will work for Office 2010 as well)
There is a free application that helps you design and validate the XML to modify the ribbon called the "Custom UI Editor For Microsoft Office": http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2006/05/25/customuieditor.aspx
Actually you have Visual Studio, but Express Edition and it shouldn't make any difference at this point ;)
I don't get your point about "Excel 2010 ribbon". I think that this is handled by Excel 2010 and it's part of User Interface of Office 2010, so if you open any Excel file in 2010 version you'll get ribbons. You can customize Office 2010 Ribbon and creating Excel files can be done in a lot of different ways i.e. using OpenXML, Microsoft Office Interop. Each has advantages and disadvantages.
HI All,
I want to export the excel file using c# and in excel it should have a ribbon (button in excel) called as refresh which will get the latest data from server.
Please let me know how to go forward..
You should have a look at VSTO. Visual Studio Tools for Office allows you to customize Office applications, using .Net. For Excel, you can customize specific documents or write add-ins, working from Visual Studio, in VB.Net or C#.