I was wondering is anyone knows how to add a scroll bar to a form control combobox thats on my excel sheet (not in a user form), because I currently have 40 items in the list and it just goes off screen and I have to use the up and down keys to scroll the list, also is there away to set the length of the list so it a small list with a scroll bar?
I have 1200 of these combobox in my workbook, so I hope there is a generic way to apply this to all combobox's
Many Thanks
Right-click, choose 'Format control', set the 'Drop down lines' number to something like 8. You might want to look into Data Validation lists rather than 1200 controls!
Related
Is there any way to globally change the selection color of all form-fields in MS Word? I have a test form that I fill out as I'm doing a test. My eyes go back and forth between the meters I read and the form I fill out. I then tab to the next field to fill out and read another meter. The default colors of the form-fields between when the field is selected for input and when it is not is not very different. I find myself trying to find my place again when looking at the form again.
Is there any way to globally change the color of all form-fields so that the color when it is selected is much different than the color when not selected? Thanks.
Keep in mind that the form is protected so that only changes to the fields are allowed. So I will have to unprotect the document before I can change it and then reprotect it after I'm done. This much I can do. I can change colors when I enter and exit a field. But this slows down how fast I can fill out the form. So I was hoping there was a property I could set to change only the selection color and cycle through all fields when the document is first opened. Any suggestions out there?
Sorry, the only options for form fields are grey or uncolored. To switch between those 2, VBA is not required. Instead, choose Developer>Legacy Forms and click the 5th icon from the left Form Field Shading (looks like an a with hatch marks around it).
Say I have this form of a timer:
https://gyazo.com/ffdae5829005768d53fcb625c6b971b8
The minute textbox and the second/millisecond textbox are next to eachother but there is an obvious line in between them which is the border between both seperate textbox. How do I remove this border to make it look like its just 1 seemless textbox?
While viewing the form in designer mode you can right click one of the textboxes and select Properties. This should open a pane that will permit you to change the BorderStyle property to None. Do this for both textboxes and it will appear seamless.
You can do what NoAlias did but this will not show any border at all. I think you want to make it look like a single textbox right?
I have three other suggestions:
Use a single textbox to show Minute and Second/Millisecond.
Use a label. Set it's background color to the same as textbox background and put it between those textboxes. This will make it look
like it's a single box too.
Do what NoAlias did, and add a RectangleShape around the two textboxes to make it look like a textbox. You can find it in the toolbox under the heading Visual Basic PowerPacks.
I have a Windows form with a tab control on it. I have fields from one bindingsource on 3 tabs of the tab control. I can open the form and change data on all 3 tabs and navigate between tabs and my changes are there. When I click on the 'Save' button on the BindingNaviator, not all of my changes are saved to the table I am bound to. Is there something special that needs to be done to not lose the changes?
I found the issue. On Tab2 of my tab control I have some number fields. There is also a checkbox the user can select to set those number fields to 100, and if they uncheck it, it was setting the the .text property of those to "". The fields should be set to 0 instead of a blank. After I made this change, it works fine. Thanks for the help.
I have a worksheet in Excel 2010 that is protected and used as a form for user-fillable values. The form contains 80 cells to be filled in and two radio button form controls to be selected. The form consists of two pages on the worksheet that are placed side by side horizontally (horizontally is a better user experience than vertically in this situation).
To get tabbing to go through the cells on the first page and then on the second page in the desired order, I used the solution on page 4 of the thread at "http://answers.microsoft.com/en-us/office/forum/office_2007-excel/establishing-enter-order-on-a-protected-sheet/e7a223f3-2dae-4c7b-a37f-1819c68be5dc". This works excellently for regular cells.
The problem is how can I also tab to the radio buttons, which are located about a third of the way through the desired tab sequence? Unfortunately, it's not as easy as just adding the radio button names to the TabOrder array mentioned in the thread.
I've found various threads talking about tabbing between controls, but nothing that solves tabbing from regular cells to form controls, between the form controls, and then back to regular cells.
I'm relatively new to Excel VBA programming and could really use your help. :-)
Thanks!
Don
I can't add a comment, so I have to put this in the answer section even though it is not really an answer: Not sure if this is still an issue for you, but are you using Option Buttons or a Group Box. And are you using Form Controls or ActiveX.
The only thing that I have found that may help is to tab to the group itself, then use the arrow keys: "When you tab to the group, you can use the arrow keys to select the next/previous option." and "2. You can set an accelerator key on each one by adding an ampersand (&) before one letter in the label. For example, if the label's caption is "&Next", it will appear as "Next", and Alt-N will be the keystroke that selects that option. Be careful not to choose a keystroke that opens a menu -- for example, don't pick F, because Alt-F almost alway opens the File menu."
From: http://www.mrexcel.com/forum/microsoft-access/557082-how-idiotic-no-way-tab-stop-option-button-within-group.html
Ok so this maybe a simple/silly question but I don't know so here goes:
In access let's say I want to have a frame control, so I click the option group button and add it to the desgin surface. However, I am not wanting to use this as a option group with radio button selection, instead I would like to add text boxes instead the frame, so that when I reference the frame, it references every control instead of it, hence the text boxes, cbo boxes, etc.....just as it would if they were radio option selections.
So can you do this?
I want whatever controls I add inside the frame to be easily referenced (i.e. make all controls visible just by using frameExample.visible = true) so that I can build my own tab control groupings.....
can this be done?
Thanks!
EDIT:
What I am trying to accomplish is having a form that includes a collection of controls (input controls - cbo boxes, text boxes, etc), that serve as the Main record information. These are saved to a table via an INSERT statement on button_click because this form is unbound.
Next I have 8 categories that are relative per each main record (and data that goes along with it). Each of these categories could have a sub form area and a button click that bring it's relative form into the sub form area. These sub forms would be unbound as well as I would just save data via SQL statement. So i know I could accomplish this by running the insert statement from the parent form, on the main collection control's data that would create the KeyID number, then run a SQL statement that would turn around and load that KeyID number right back onto the page in a hidden text box.
Then when I click one of the sub forms and load its relative collection of controls, I could then save that data along with KeyID for each of these sub-forms/tables.
SO......
I was wondering if instead you could define these controls as a collection so that you could hide and make visible all the ones you need on button clicks and avoid the need for additional forms (subs). I know that if a user enters data into a text box, and then somewhere along the way that box becomes hidden, the data still exists in it and still ends up in the SQL statement....
So I want all these controls to exist on the same form, but I thought what is I could encapsulate them into a frame like an option group, then I could call the frame and all the relative controls would be called up (made visible) as needed.
Sorry for the long explanation but I thought it would help.
I do not think you can do it with an Option Group, but what you are describing is pretty much a subform, yesno?
Some examples of hiding the tab control from an app that went live in March 1998:
Tab driven by transparent command buttons over labels styled to look like colored command buttons:
Same approach, more buttons:
In this case, fake colored command buttons don't drive the tab, but insted show/hide the tab and a subform. In this case, the tab is actually driven by the listbox:
A view of when the tab is hidden and the subform revealed. The listbox drives navigation within the subform, which has a visible tab on it:
So, there's a lot that can be done without showing the tab control.