Suppress dialog box for a dropped shape in Visio VBA - vba

When I drop a milestone from the shape master onto a page, a dialog pops up asking for data (milestone date, description, etc.). How can I prevent this dialog box? I set the values in code.

How can I prevent this dialog box?
IMHO No way ! Because this dialog box managed by build-in add-ons (aka wizards) like Project Timeline, Gantt Chart and so on…

Related

How do I make a userform appear on demand in Microsoft Word?

I can make it popup on opening the document, but what if I close the userform and want to it to show up again in the same document? I know in excel you can add a button onto a worksheet directly and make it show the userform on click, but this button is unavailable for microsoft Word. Is there a solution besides initiating the script by hand?
To display a VBA userform, you can trigger it from a macrobutton field, from a form field, from a shape, from a QAT button or from an ActiveX button. There are probably a couple of other methods I'm not remembering at the moment. Each is a little different in the exact steps, but all will run the command:
UserFormName.Show

Create a custom information window in Word VBA

Is it possible to somehow have way for the Selection.Style (and possibly other info) to always show up in a custom information window similar to the way Debug.Print prints in the immediate windows but ALWAYS visible?
I find myself struggling to quickly check a Selection.Style. MsgBox requires clicking "OK".
I have used the "Reveal Formatting" window but I would like more control over how the information displays.
Is this possible?
At least for knowing the Style at the current selection point, you don't need a custom user form. Place the StyleGalleryClassic control on the QAT or a Ribbon tab.

Hide VBA codes when double clicking controls buttons

I have inserted a combo box on PPT slide. When I double click the combo box, the VBA editing window will pop up. Is there a way that when I double click the box, VBA code does not pop up? I don't want users to see my actual codes and VBA window in general.
Thanks in advance!
I think you might have design mode on. Have a look under Developer > Controls > Design Mode. Turning it off should remove that behaviour.

How to add Range Input to VBA UserForm

Many of the built in excel dialog boxes use a range input box like this one:
Im not sure if they are called "Range Inputs" or whatever. This is taken from "Data Analysis" in Excel, in case you are wondering. When you click on the little image in the text box, the dialog box disappears and excel allows you to select a range of cells, which it then places in the the text box. If there is a way to incorporate this into a UserForm, please let me know
Thanks in advance!
It is called RefEdit Control and works similar to that built in Boxes.
If your toolbox does not have a RefEdit control, set a reference to RefEdit control. Click Tools, References, and check Ref Edit Control.
Here is an Example how to use it: http://www.excel-easy.com/vba/examples/userform-ranges.html

Is it possible to have an extension library dialog box within a repeat control?

I'm running with an 8.5.3 UP1 server and I have a need to have many dialog boxes (for confirmation purposes) for a whole bunch of "action buttons" on an xpage. The code for these dialog boxes is almost exactly the same with the exception of the confirmation message being different and the client-side JS function they are calling if the Yes button is selected.
Since I really hate repeating code over and over, I was wondering if it is at all possible to put a xe:dialog control within a repeat control and specify the message and function call from an array of values? I know I can't compute the ID of the dialog control and without that I'm not sure how I would reference the dialog to open and close it.
Any ideas? Thanks
Yes, this is possible.
Make sure that you specify that the dialog box's property for keepComponents is set to False. You don;t have to do anything special for opening or closing the dialog box, just use whatever ID you give the dialog box in you client-side action to open the dialog box in the repeat such as XSP.openDialog('#{id:myDialog}')
The XPages renderer will automatically calculate the correct ID names for you.