Is it possible to add a combobox as column in a listbox in VBA? - forms

Using a VBA form, is it possible to add a Listbox control that has columns which contain Combo box controls?

No not possible with Standard VBA; Standard VBA will not allow this! You may be able to create a custom ActivX control or load another 3rd party control as suggested elsewhere but a standard ListBox cannot hold a ComboBox.
Other Workarounds may be usable if you can provide more details...

If you insist in doing that using User Forms, the only way is that when you click a list item, it should pop a different form containing the combo box, it will be too much work to create and difficult to maintain.
I am sure with spreadsheet itself you can come up with better solutions. I am still not sure what ultimately you want to achieve, but to me this is just a dependent list so you can use sth like this in the spreadsheet itself:
http://www.contextures.com/xlDataVal02.html

Related

Drop down according to Location - gravity forms

Does any of you know if it is possible to get different dropdown field according to the location you are in?
Preferably in Gravity Forms.
There are many options, you didn't really provide enough information to provide much guidance.
A general approach is to have an array for each set of choices you want. These can either be hard coded or you can pull them dynamically from a database depending on how many there are and whether they change.
Here's a link to the Gravity Forms support site with info on how to dynamically populate the drop-down.
You could have a dropdown before the one you mention that determines which set of data to use to populate your main dropdown.

SYMFONY FORM - filter attribute form on top with submit button, that provides a table with other form used to edit each row details

I am looking for best practices on SYMFONY FORM handling to achieve the following standard page (surprisingly I haven't found anything similar existing yet on SO).
Here is a shema of what I want to achieve:
As you can see at the top there is a SYMFONY FORM to filter the results that should be displayed.
It displays a table and each tuple of the table should permit to open another SYMFONY FORM kind linked to the tuple.
I am in the process of learning SYMFONY FORM, so far, I can manage to create the top row FORM to set the filter that'll apply to the table display.
But I wonder if anyone has experience on the second part: Displaying the table that embed as well many forms of a similar kind -That seems a bit more complex. I read about TWIG.EXTENSION and FORM.COLLECTION, I'll investigate that. But if someone could save me to re-invent the wheel and lead me to some direct shortcut, I'd be really grateful.
No idea if it's the best practice, but one way to do it would be to create a new property for your entity being listed in this table, called $editionForm (without mapping it to the database) for example.
Then, either throught a custom loop or by listening to a doctrine (or any ORM you use) hydration event (or triggering such an event if you don't use any ORM), fill the property with the generated form, probably within a dedicated service.
Then, just use it in your template like this :
$entity->getEditionForm()->render()

How can I create input field/form in excel?

I need to create input form in excel, but the ones I found are quiet different from what I need.
https://drive.google.com/file/d/0BxLNQnK5luweby1KYXRqR2c5ZjA/edit?usp=sharing
Here, you can see the type of form I need to create. Its an excel file with such form, but the macros are password protected, so I cannot see nothing more than the ready form.
Any help is most appreciated.
that's not a form, that file just uses some cells as a form. if you are googling forms for vba you will not find your answer.
if you need to add controls to your fomr you need to enable developer ribbon.
go to file>options>custumize ribbon then check Developer, now you can add butons like the save one to your excel sheet.
then rigth click that button and assign the macro that will do the job.
Hope it helps
If you need to view the macro you can right click on the worksheet and select view code, if the vba is protected there is software that will retrieve the password if you have forgotten it

Fill a Word 2010 form drop-down without using code?

I have been tasked with updating a Word 2010 fillable form for one of our departments. In various places in the form it uses a drop-down box with the same 20-or-so items in the list. I would like to make it so all occurrences of this box fill from a master list, thus making it easier to update in the future. I know in Excel you can do this with Data Validation and selecting a source list from somewhere else in the workbook. Is it possible to do something similar (reference a table, hidden text, etc) in Word? I have not been able to locate a feature in Word that looks promising, nor have my Google searches yielded anything useful. I realize this would probably work in VBA, but I'm hoping to avoid adding code to the workbook if possible. I would also prefer that the list be updateable by someone who does not know VBA. I'm not looking to do the impossible, so if you know for a fact that this cannot be done, say so and I'll move on.
Thanks.

What is the best way to present multiple options in a form for section 508?

I will need to provide a way for a user (who will be using a screen reader) to select multiple options within a form. Currently, these options are laid out in a two column table with checkboxes in the first column and spans with the label for the option in the second column. This isn't section 508 compliant, but it will need to be for this site. I'm trying to figure out the best way to replace this form with something better.
The options I have are to either
Use ul/lis with labels for the checkboxes
OR
Use a multi-select drop down list.
Does anyone have a preference or a better idea?
I've decided to use a muli-select dropdown. In case anyone was wondering. It seems to work fairly well with the screen reader I'm using. I did find that IE seems to be the best browser to work with and most screen readers aren't working very well with Chrome or other browsers unfortunately. I can only assume then that most people who visually disabled are probably using IE because of this.