I have several checkboxes in a form and the program will run different macros depending on what the user chooses. There are 9 checkboxes total. 1 checkbox activates all other checkboxes while the other eight are the options. If a user clicks the All checkbox, the other 8 are activated. If All is unchecked, the other 8 are unchecked. The trick is that I want the All checkbox to change to False if any of the 8 options are triggered to False. The problem I am having with the code I have is that if I trigger any of the options to False, the chkAll macro kicks in and turns all of the checkboxes to False, not just chkAll. Somehow, I've tried using the Change and the Click event with chkAll but it seems to be behaving the same using one or the other. I have pasted the code below as well as included an attachment of the file with the form.
Private Sub chkAcq_Click()
If chkAcq.Value = False Then
chkAll.Value = False
End If
End Sub
Private Sub chkAdmin_Click()
If chkAdmin.Value = False Then
chkAll.Value = False
End If
End Sub.........................
I have four cells that contain text. All have connected check boxes with TRUE FALSE.
I need to be able to select anyone one of these cells with a check box, and have it's text appear in one separate cell eg: A1.
I have no issue connecting check boxes etc. I have no issue reproducing the text from any of these cells into multiple cells with a check box. But they have to be selectable and reproducing in one cell only (eg"A1").
I'm trying to select 1 out of 9 checkboxes on one sheet, first checkbox located in Cell#I22 and when it's selected, I would like it's name ("ROC") of that checkbox to appear on second worksheet in cell # I23.
just wondering if there's a way i can make the Radio buttons and check-boxes in my forms select-able by hitting enter? My form is quite long and it takes too much time for users to always have to grab the mouse and click the box, if they could just tab to the radio box or check box and hit enter to select it it would be awesome!
I want to add a user-form on a chart, which will have check-boxes that will allow me to select series(lines) that I want see and compare in a chart. Currently my line chart has 24 series (Lines) which makes the chart very difficult to view and looks very busy. How do I add list of check-boxes that will allow me to select one or multiple lines that I want to see at a time?
I have a sheet (sheet3) with a various number of checkboxes in specific cells. I create them trough 'paste'(see code at bottom). They are named checkbox'i' (in my example I use just 1 to 3). The problems now start with adjusting the value of a checkbox with specific number. It works with checkbox1.value =true/false, but I can't manage to do it for number 'i'. So how can I call number i'?
for example: I can delete them with .name property. But with the .name I didn't succeed to adjust value
Dim sh As Shape Dim rng As Range
For Each sh In ActiveSheet.Shapes If sh.Type = msoOLEControlObject Then If TypeName(sh.OLEFormat.Object.Object) = "CheckBox" Then sh.Delete End If Next sh Or for specific numbers.............
I have a workbook that has a sheet with a lot of columns. I also have a sheet before it which I want to put checkboxes on which will toggle columns on the second sheet hidden/unhidden.
I'm using an active X control checkbox form, but I can't figure out how to add multiple checkboxes. Is it possible? Or do I have to just create multiple individual checkboxes?
Here is the code that I'm using in the active X control: If CheckBox1.Value = False Then Sheets("Best").Columns("A:A").Hidden = False Else Sheets("Best").Columns("A:A").Hidden = True End If
I'm having problem in managing 4000 checkboxes in a sheet. My sheet containt 2000 rows with 2 coloum of checkboxes. The question is, how to know when checkbox tick in one coloum then it will automatically tick the other one. I know how to do it with small quantity of checkboxes (i.e.: 10 checkboxes). But 4000 checkboxes make me headache.
I've finally figured out how to set up my Marlett checkboxes, but need some help with setting up multiple ranges. I can get up to 2 ranges to work with this
I have 4 checkboxes: a, b, c, and d. if all three check box a,b, and c is checked, then check box d is checked. if any of a, b, or c is unchecked, then check box d is unchecked.
I would like to be able to add a checkbox linked to each sum cell that adds the values of each of those cells.
Ex: A5=4, B5=6, C5=1, D5=7. With a checkbox linked to each cell, if i check the boxes in A5 and C5 then in another cell i would get the sum of those two cells= 5.
I've tried this but every time i link a checkbox to the sum cell it deletes the formula and puts in a True or False result.
The sunglasses (column A) are available in different colours, hence the seven colour categories (column C:I). I want to be able to sort through the colours and sunglasses through the checkboxes by looking at the "x"-mark. When all the checkboxes are marked, all rows should be visible. But when I for instance check the orange, black and white checkboxes, only the Retro and Sporty sunglasses should be visible (autofiltered by the correspondent "x") I would also like to be able to select all the checkboxes at once as well as clear them all through the buttons next to the list.
I'm working on a project that involves scheduling participants. The good news is that it doesn't have to be complicated at all. Here's some info.:
Each event can either be one person or a group of people. Also, one person could be in more than one group. The event can be either a brass, woodwind, percussion, strings, or vocal. Events are scheduled at 10 minute intervals. Since we don't take time requests, what I need is something that will plug in events (sorted by the type of event) to time slots. (Each event takes place in a different room) All it has to do is avoid scheduling a participant at the same time and there needs to be 20 minutes between when a particpant can perform again. (In other words, if they are scheduled at 8:00AM, they can't be scheduled again until 8:20.)
On the spreadsheet, Column A is the event name, Column B is the Event type (Brass, woodwind, percussion, strings, or vocal) and column C are all of the participants involved. I don't know much about VBA so this may be too much work for this kind of foum but the folks on this board always amaze me.
I have a worksheet with approx. 100 form checkboxes. The cell behind each box holds it's TRUE/FALSE condition, which is something I check for elsewhere on another worksheet.
I need one 'SELECT ALL' checkbox which, when selected, will 'check' every one of these 100 checkboxes (change their conditions to TRUE).
Ideally this would be done thru an excel formula, but I've looked everwhere and not found anything that will permit this.
I have for e.g. 10 VBA and 10 check boxes and an 'execute' button so, i want this button execute exactly that vba, which I will select by checking checkbox Each time there will be only one box checked also I'll need to have names for boxes like you can see attached picture.
I have an excel sheet where I can enter a text into A4, when this is valid a checkbox1 will appear if there is no value then the checkbox is invisible.
I have used a macro 'worksheet selection change' to do this but unfortunately I can only use this once in a sheet. I need to do this for upto 10 checkboxs that corrospond sequentially with text starting at A4 for checkbox1, A5 for checkbox2 etc....
The routine I have used for one check box is below. Can this be changed for multiple checkboxes?
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Range("A4") = isblank Then CheckBox1.Visible = False Else CheckBox1.Visible = True End If End Sub
I am trying to clear check boxes and list boxes on multiple worksheets within a workbook. Below is what I have,but doesn't work. Note: the "bottom " code does work to clear selected cells of their data. I tried to create a macro for the list boxes selecting "----" which I have as the last entry in the vlookup table but was totally unsuccessful at.
Sub cleardata() Dim Obj As OLEObject Dim ws As Worksheet
Basically I have a big table containing several columns for the different quarters. (Each quarter has several columns which are not all next to each other)
I would like to use 4 checkboxes which the user can select the show or hide the columns for that quarter. E.g. if Q1 and Q3 are checked only those are visible)
(if quarter 1 clicked than all columns are visible if unclicked hidden).
The code I have written workes well for the first checkbox (Q1), but for the other quarters (Q2, Q3 and Q4) the columns get hidden when checked (which should be the other way round) and don't get unhidden when unchecked.
Sub CheckboxQone() If Range("$A$1").Value = True Then Call showQ1 Else: Range("$A$1").Value = False Call hideQ1
I would like a macro that select all cells based on multiple criteria. It's a big sheet, but I've made it smaller in the following example.
In row 1, there are 2 headers, in B1 (electricity) and C1 (gas) In column A, there are 3 houses, in A2, A6 and A10. The blocks of cells in between (e.g. B2:B5) have 2 headers, 'period' in B2, and 'account number' in B4. B3 and B5 have a list of options in them.
I want to select cells that meet certain criteria. Either electricity or gas, and either period or account number. So, if in cell D1 I choose electricity and in D2 period, I would like to select B3, B7 and B11. If I choose gas and account number, I wish to select C5, C9 and C13.
I have VBA code below. Currently the code allows me in column "N" to choose more than one item in a dropdown menu. I am trying to find a way to make column K and M do the same thing. I have tried a number of ways but to no avail.
I have many checkboxes (1 to 26) that I want visible or not, based on whether the cell states "n/a" (are in a column in a different worksheet). Rather than writing this code multiple times, I'm looking to condense the code.
To select multiple columns I can use Union but can I use something that will cicle through the values from an array?
Example (how do I see this)
VB :
columnsToDelete= array("UM","Post","Pre") For i=0 To UBound(columnsToDelete)
Set columnsFound=Range("1:1").find(what:=columnsToDelete(i), lookin:=xlvalues,lookat:=xlwhole, matchcase:=True) columnsFound.select Selection delete Next i
I am using VBA to change the format of columns. The code work with 1 column, but In need to change the format of mulitiple columns. E.g Cols 11 to 22. I tried the code below but it does not work!
I have 2 ranges which on their own seem to work fine (I have check by just putting ".Select" at the end of both of them). The issue is that I want to apply the same border format to both ranges, however, when I try to put them together in a "With" statement it includes all of the range from the top to the bottom and not just the 2 two ranges. Ranges being used:
the following code allows users to select only one image and insert it into a protected sheet. How can I change it to allow users to select multiple images and insert them???
Sub InsertModel() Dim myPictureName As Variant Dim myPict As Picture Dim myRng As Range Dim myCurFolder As String Dim myNewFolder As String
I have a userform that has two comboboxs on it. When the user clicks and selects an item in combobox 1 the code will highlight an area of cells that I set before. When the user clicks and selects an item in the combobox2 I need a piece of code that will highlight a second area of cells while still keeping the first areas of cells highlighted.
How I have it set up now if the combobox1.text = "Monday" then the cells B6:H20 are selected. But when the combox2 click event fires and selects another range of cells the first range selected by the combobox1 event is unselected. Is there a way to keep both areas selected?
I have a 'diet diary' that I have built in excel that has many of the common meals I eat and details calories, carbohydrates, fats, etc and I use it to keep track of what I have eaten in the day.
However, one of the features is that on the front sheet I have lots of drop down menus that I select the different things (example, milk, banana, spaghetti bolognese) which in that puts in the nutritional info. However, each day I have different numbers of items to put in so I have to change the slots that no longer have an item in back to the default value so that it doesn't add calories. What would be ideal is if I could highlight a bunch of boxes at once and then make them all select the 'no-item' option in the drop down box simultaneously rather than selecting them all individually.