I have researched to death and am really stuck. I am using Visual Studio 2017 to develop an excel ribbon. How do I get it to refer to the active sheet? I do see the Activate() function but no examples of how it is used and I have tried a few things now. I just need an example and I can be on my way.
Related
Currently I have extended Excel with:
(1) VBA code.
(2) XML code using "Custum UI Editor for Microsoft Office" in which I customize the Ribbon.
I am also working with Visual Studio Community 2017, where I have some project coded in VB.NET. However, I am not at all familiar with C# or other languages.
My customizations in Exccel include dynamic menus as well as added build-in groups to custom tabs, so I don’t think I can use the "Ribbon designer".
I have been testing a little with Visual Studio for customizing the Ribbon of Excel, but the VBA code gives me problems with referencing to e.g. current selections of cells in Excel:
Private Sub FormatTusindtals0(control As IRibbonControl)
Selection.NumberFormat = "#,##0"
End Sub
And now I wonder whether Visual Studio is a better tool than the "Custum UI Editor for Microsoft Office" for customizing the Ribbon?
Any input to whether VS2017 is a better choice than "Custum UI Editor for Microsoft Office" – and how to get all my VBA Subs and Functions to work in VS2017 is very appreciated!
THANKS!
I am trying to make a Windows Form application using Visual Studio in which I right click on a word document, select an item 'pages count' from the right-click menu, and a form will pop up with the number of pages in that document.
Am I right to be using Visual Studio for this?
How do I call "thisDocument" or "activeDocument", and make the document the one that is selected in the menu, if the document is not actually open?
I saw that for application.ThisWorkbook, if it the application is an add-in, it will bring up the application calling it, but I am not quite sure if an add-in is part of Visual Studio?
https://msdn.microsoft.com/en-us/library/office/ff193227.aspx
I hope this question isn't too basic -- all these things sound so similar to me, I'm having trouble sorting it all out with googling and reading questions.
Thanks for any clarification!
I'm starting with Visual Studio 2015 and have a question in Code Editor when using large Sub or Function in vb.net.
I would like navigate fast to the start or End of the actual Sub/Function.
Also I would like later return to the previous point....
I remember in vb6 you would use Ctrl+PgUp and Ctrl+PgDn to navigate between Subs/Functions.
There is some hotkeys availables in vs editor?
For example, you are in the middle of an very large Sub and you need to type some code at start or end and after this return to the actual point.
Sorry if the question is so novice, and sorry my poor English.
Thanks.
Could it be compatible to the answer in this Question reg. VS 2010?
Keyboard shortcut to move cursor between methods in Visual Studio
Developing an addin for Microsoft Office 2007 onwards (client requirements, yuck) but I am rusty with my VB. I am using Visual Studio 2008 to create the addin for all 3 major programs; Word, Excel and PowerPoint.
I was wanting to set a condition to rename the Tab inside of the Ribbon depending on what version of office they were running. But I have searched everywhere and cannot seem to find a way to accomplish this? I don't quite understand what Ribbon XML is and how it differs from the visual designer.
It would be great to get some explanation of how to access elements of the Ribbon and change them depending on the Application Version (whenever I try to reference Application.Version VB doesn't seem to know what I am talking about)
I can clarify more however any help including 'where to look' would be much appreciated, thank you :)
I'm working in a ribbon project for Excel 2007, using Visual Studio 2008 and VSTO, I'm trying to make my ribbon's groups collapse into galleries when I resize the Excel window, this is a functionality that the other tabs in the ribbon have (the tabs that come with Excel).
At first, I thought this wouldn't be that much difficult, I imagine that it would be like a property from the ribbon, but I have researched a lot about it and it seems that it is not that much easier.
I was looking at this article, there is a post from a guy called "Mike McGavin", he is asking for the same thing that I'm, and the guy that answer his question tells him that auto resize is not current functionality on custom groups/controls.
Now, that post is 1.5 years old...so I'm hoping something new has been out there, maybe some of you know something about it.
Thanks.
It's in 2010. Scroll down to Custom Group Auto-Scaling section.
http://blogs.technet.com/office2010/archive/2009/11/03/ui-extensibility-in-office-2010.aspx