Excel VBA Dialog box with custom buttons - excel

I would like to create a dialog box or message box in excel WITH custom button labels i.e. FIRST and SECOND. I would like for this box to open up when the file is first opened...and doesn't allow user access to the worksheet until they select either FIRST or SECOND.
I can make a form, but I would rather not add a form since this should be simple... I remember doing something very similar back in the VB6 days, but that has been sometime.

The MsgBox function does not support different names (than the given ones) for the buttons, and neither the InputBox method or function will allow you to change the button names.
You'll have to make a simple form.

Related

Excel and VBA form editing only

I've been trying to produce a form for the company I work at to automatically produce a specification with information inputted using excels form control drop down boxes and buttons. I have managed to produce the code that produces the required results but was just wondering if it is possible to make it so that the user can only choose from the drop down menus and press the buttons. I have seen that parts of the spreadsheet can be locked but I have struggled when trying to use this on all of my drop down boxes and buttons. I would also like to make it so the inputs (drop down boxes) are within another window maybe? Or if there is a way the inputs could pop up as a form outside of excel in order to make it look more professional. What the sheet looks like at the moment is below.

Combo Box not showing on Excel VBA Form

I have a form with multiple Combo boxes. I was doing some appearance tweaking of the form and one of the boxes is not showing anywhere. If I try to add a new combobox with the same name it says it is not unique.
I tried Opening the form with a message in the box "Here I am" but it did not show. I don't get any compile errors as there are multiple references to the field in my code. Is there anyway to find it (Me.cmb_Photographer)?
It could be a bunch of different things. Perhaps the visible property is set to No or the control is behind another control. You might also have mislabeled something so Name property is different from the Control Source property.
In any case you should be able to go into design mode, open the property sheet and use the dropdown to find the control you're looking for. It should highlight the control on the form.

Possible to show the same object (textbox that display a menu when) with the same name and referencing the same macros/vba code?

I have emulated a hamburger menu (implemented as a textbox) that triggers a dropdown with various options that I want to display various tabs of an Excel workbook (though the specific purpose of the textbox is not relevant to my question). Is it possible to show the same textbox object (or any other object) with the same name and calling the same macros/vba code? I would like to avoid having to write a separate [tbName]_click, etc. event handlers for the each tab where I want it to appear (and will eventually want to have the hamburger menu displayed on various pages dynamically -- but that's a subject for another day).
Thx...
D.
The code for the hamburger menu (for which I already have working code) is implemented as a textbox ,but could be ANY object that triggers a macro when clicked. I don't think posting that code would be helpful. I have not yet begun witing code to place the copies of the object on different tabs. Before I begin writing that code, I was simply hoping for guidance on an APPROACH.-- not so much the code to do so as much as either a verbal description or even simple pseudocode showing how to copy the object from a source tab to a new or different target tab. That, and whether the object, after being copied to the target tab, can have the same name and trigger the same macro. There are other behaviors I want the object to display, but I can figure those out myself, and there's no need to bring them up here.

Handling multiple html combo boxes in BluePrism

On a web page there are two html combo boxes, value in the second combo box depends on the values selected in first combo. When I do this manually it works, but with BluePrism on selecting value in first box the values in second combo box doesn't load.
I think that it be so, that when you're using blueprism "select item" action instead of clicking using mouse, then some javascript code must not be executed.
I'd try to investigate a page that you're automating. I'd search for the javascript code that is being executed when using mouse and try to call that method from BluePrism object.
I think that it be so, that when you're using blueprism "select item" action instead of >clicking using mouse, then some javascript code must not be executed.
Yes, this is the right answer.
Also, some combo box will check your manipulation. If your manipulation is more robot-like, it would not invoke the javascript code. You may need to use "invoke javascript function" in navigating stage or you can just use "global send keys" to send keystroke and make you manipulation more human-like.
When you spy the element of same type just like combo box or text box you, please select the appropriate attribute from modeler window. In this case you can able to select the attribute "ordinal" and "match index".
If you check ordinal value will different for each combo box.
Is it something like, if I choose first option in ComboBox1 then in ComboBox2 there will be automaticly chossen option 2? Is it allways the same conection?
If so, choose ComboBox 1, then make a descision step: IF CoboBox1 IS 1 THEN...
If not, then after you choose ComboBox 1, you may wish to read value of that ComboBox and then choose the value of the other.
Hope it helps.

Xpages chained djFilteringSelect in separate dialogs

I am trying to make a 2nd djFilteringSelect using a #Dbcolumn depending on the value selected in the 1st djFilteringSelect control. That's a common task, using a partial refresh. However, each of the controls is within a dialog control from the extension library. One dialog pops up, the user selects a value, and automatically the 1st dialog closes and the 2nd opens. YOU CAN'T SEEM TO REFRESH THE FIELD (I'm guessing b/c it's not in the DOM). I've tried writing the first value to to an computed field and/or a text box on the main Xpage using CSJS and then looking for that value for the second lookup. Also, tried with SSJS, etc. I tried do updates and writing to fields on either the onChange or on the click of button. How do I go about using the selected value of the first to do the lookup in the 2nd?
You can use a single dialog control where you hide and show the relevant controls. I am using this approach in several apps.

Resources