Lock Drawing Mode VSTO 4.0 - excel

i am working on an Excel AddIn Development using Visual Studio Tools for Office (VSTO 4.0).
there is an option in Excel Lock Drawing mode for specific shape which enable a user to draw a shape multiple times.
my requirement is to enable "Lock Drawing mode" (for ElbowConnector) using C#/VB.Net using VSTO 4.0.
i tried to find a solution to this even in VBA but did not get any luck.
Thank you,
Regards,

You can try to execute the built-in button programmatically. The ExecuteMso method of the CommandBars class allows to run the built-in controls programmatically. See Office 2013 Help Files: Office Fluent User Interface Control Identifiers.

Related

Excel VSTO application UI is not showing properly for (only) excel 365

We have Excel VSTO add-in, which works all excel version except Excel 365, plugin UI does not show correctly, user have to drag and expand it then only it is visible.
Is there any particular setting which we have to do, so that whatever UI we have designed in visual studio, same will be shown for Excel 365 like all other excel?
Your task pane is just represented by a user control with .net controls placed on it. Most probably the issue is related to scaling which may different on machines. Now latest Office versions support per-monitor scaling which means the UI can be scaled per-monitor, not OS.
Another possible problematic area is the layout of controls. You need to use containers and flow the controls depending on the available dimensions. There can be a minimum width and height for the controls.
The Office extensibility model doesn't provide any mechanisms beside standard .net tools for debugging the code.

How do I set Screen Tip Style for Excel Ribbon UI using VBA

How can I set the selected feature using VBA?
Office applications keep their settings in Windows registry keys. I'd suggest using the Process Monitor utility for locating the exact place.

Custom Pane In Excel

I am trying to create a custom static pane on the right side. so it shall be independent of zoom and scroll function in excel. please see the image for more. I tried the following. but no success.
I not sure whether the split-screen function in excel can help to achieve this.
Please note: I want to do it in page layout mode. as I was to set cell sizes in inch.
I tried the following.
ActiveSheet.Range("H1").Select
ActiveWindow.FreezePanes = True
ActiveSheet.Range("H1").zoom = False
I have no idea to make it work, as I am new to VBA. I need a user interface something like in the picture below. so I can scroll on the left but static part on right. in the static part, I would be able to add custom controls like Combobox, command button, TextBox, etc. Thanks
You have 2 solutions:
VSTO Taskpane add-in:
Custom task panes give you a way to create your own task pane and provide users with a familiar interface to access your solution's features. Custom task panes let you integrate your features into a familiar user interface. You can create a custom task pane quickly by using Visual Studio tools.
Document: https://learn.microsoft.com/en-us/visualstudio/vsto/custom-task-panes?redirectedfrom=MSDN&view=vs-2019
Office JS Taskpane add-in:
You can create an Office Add-in by using the Yeoman generator for Office Add-ins or Visual Studio. The Yeoman generator creates a Node.js project that can be managed with Visual Studio Code or any other editor, whereas Visual Studio creates a Visual Studio solution. Select the tab for the one you'd like to use and then follow the instructions to create your add-in and test it locally.
Document: https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator

How to hook a Window Form within Microsft Excel from VBA?

I'm trying to hook a Window Form within Microsoft Excel itself like on the attached picture (This is an Addin called Kutools).
It is supposed to:
Fit on the right side of the Row number
Be Just below the name box
Be resizable and the window is resizable with it as well
Be collapsible or Expandable (like on the image)
I prefer to use the internal VBA of Excel to build and hook it as much as possible. But if I have to use an external Editor (Visual Studio C# or VB. Net ...) I'm willing to follow the instruction.
I searched all over the web but couldn't find a way to do this. I definitely appreciate your kind assistance on this.
Thanks for your help, I'm open to any suggestion!
If I am not mistaken, you are trying to create a custom task pane for Excel (add-in). If so, then this link might help you, but you need to build it with Visual studio using Office development tools:
https://learn.microsoft.com/en-us/visualstudio/vsto/custom-task-panes?view=vs-2019

writing a microsoft word toolbar

I want to write a Microsoft toolbar that gets a word from Microsoft Office Word and pass it to other application (Text To Speech) that is written personally. I've searched the web but not so many good ideas. First is it possible? (Sounds yes!) And is there anyone who has faced somehow the same problem? I'll appreciate any ideas.
You can use Visual Studio to create a Word 2007 (or 2010) addin with a Ribbon XML file.
MSDN has a walthough.
For 2003 or earlier, you'll need to create an addin that uses the CommandBars object to add a toolbar.

Resources