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.
Related
I have a web form in which I need to enter repetitive data to configure the application and I am writing an excel macro in VBA to achieve this.
Data entry to all fields went well except one field. The field contains a pre-validated list of values, so there are two values SALES and SALES_TAX and when I put SALES, it opens up a pop up screen to select either through image or a radio button to bring the value back to main screen.
I could not able to achieve it and need some help on this please.
Thanks
AM
I am uploading a screenshot and few commands which I tried as below but failed to achieve the desired result,
Sceenshot
driver.FindElementByXPath("//input[#class='xo' and #id= 'N1:N8:0']").Click
driver.FindElementByXPath("//input[#id='N1:N8:0']").Click
driver.Actions.Click ("/SALES")pe here
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.
For the purpose of building an Excel survey form, I want to create an easy rating entry system that would set values in cells based on a single click on a rating object (form control). With this click on say a 5-stars object it would return a value (from 1 to 5) based on which star is clicked (0 if not clicked), value that would be stored in a linked cell. The form should have such 5-stars objects next to a list of questions.
Using Excel built-in controls would limit option to the spin button, which isn't as convenient.
I haven't found any other suitable controls, nor ActiveX (which would make it more difficult to share the sheet).
Thanks for your insights on how I can achieve this.
If you are willing to digress from your wish to have stars as buttons, the excel form controls seem to be more than able of what you are looking for. You could use Option Buttons to achieve something like this:
A detailed guide on how to use these Buttons can be found here
I have a sheet in excel that is basically like a database (yes it has to be in excel unfortunately) and I want to design a simple form to display the records (the different column values in the rows). Usually MS is good with making widgets to do this but I cant seem to figure out how to write it in VBA (easily)
Basically I have a list of Names and ID#'s then some other columns that need to be filled in (address, order # etc) but I'd like the user to do this via a form rather than typing in excel. I created a small form in VBA, but now I cant link the columns to the textboxes in the form.
Anyone know of any code I can plug and play to do this.
Specifically I am using a ComboBox (for the list of names) and then a for loop searching through it to find the selection and updating data. But its a real pain.
plus I cant figure out how to put in a 'Next' button, which is really annoying me. Does anyone know how to change the comboBox value to the next row, if it is linked via RowSource
Have you considered the Form feature? You can find under the commands you can add to your QuickAccess toolbar.
Check this helpful tutorial for additional details.
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.