I received a spreadsheet form containing some checkboxes that I need to tick. The problem is I dont know how can I tick/show the check mark on the checkbox. everytime I double click it, macro vb screen appears.
I am trying to write a macro for an option button, that when selected it checks to see if another option button is selected then continues to automatically change the value of 5 other option button within in 5 other group boxes
Sub SetFilter() 'check to see if filtering is required If Sheet1.Shapes("Option Button 54").value = True Then 'set non-specific filtering Sheet1.Shapes("Option Button 28").Value = xlOn Sheet1.Shapes("Option Button 38").Value = xlOn Sheet1.Shapes("Option Button 44").Value = xlOn Sheet1.Shapes("Option Button 52").Value = xlOn End If End Sub
Is there any way in which I can map the tick mark labels on either the x-axis or the y-axis to different values other than the ones that are being plotted for.
For example, lets say the data is:
1 5 2 6 3 10 4 15 5 8
I want to plot these in a chart but instead of displaying 1,2,3,4,5 on the x-axis, I want to display a different column, say,
5 7 9 11 13
The answer is not as simple as plotting the required x-values with the y-values. I have just used a simplistic example but the thing I am trying to do has dependencies involved so I cannot simply plot the chart with the required column.
I was reading your Tick Cell Upon Selection article and it works great. I'm just wondering if there is a way to modify it so that they can only select one of the cells in a row.
For example, in this spreadsheet, the cells I have marked for "tick upon selection" are N8-Q8. In this worksheet, though, I only want the user to be able to select one of the four options. Is there a way to format the code so that they either cannot select another cell until they have deselected the first one, or the first one unchecks itself and the new click ticks that cell?
Example: Person selects N8. Person then selects P8. Can it not allow P8 to be selected (and give a warning message) or can it uncheck N8 when P8 is checked?
I am creating a userform with 10 checkboxes. The first 9 checkboxes are user options. I want the 10th check box to be a "Select All" option i.e. if the 10th checkbox is checked all the other 9 options are deemed to have been selected.
The way I want the display to work is that if the 10th checkbox is ticked all other checkboxes are cleared. Also if the 10th checkbox is ticked and any of the other check boxes is selected then the 10th checkbox should be selected.
I have tried coding this up but the checkboxes don't seem to operate as desired. I placed some code on the click event for the last option button to set the vlaue for all other buttons to false. This works but the 10th check box doesn't get ticked itself. When I try to code up the other bit I get similar issues.
I have a problem to check the value of a checkbox when I write the code in Module1. I have several worksheets, and in each worksheet there is a CheckBox1. I want the macro (in Module1) to perform a given code when the CheckBox1.value = true and visa versa.
The code I'm using is as follows:
Global ws As Worksheet
Application. ScreenUpdating = False
For Each ws In Worksheets
If CheckBox1.Value = True Then 'Do code1 Else 'Do code2 End If Next ws
Application.ScreenUpdating = True
When the Macro is run, an error msg is showing "RunTime error '91'.
Does anyone know how to make this macro function? I've searched the forum, but couldn't make any of the codes suggested to work.
I have 20 check/tick boxes on my worksheet (CheckBox1-20), each of the 20 tickboxs has its own linked cell A1-A20 - I wish to have another checkbox (checkbox21) that, when ticked will tick all of them.
Also, if unticked it will untick the 20. I'd like this to be a kind of "onclick" command - so that if I wanted to tick 5 of the 20 on their own, the "master" tick box won't interfere with this. If a command button is easier to code than this is just as good.
I've been looking online on on here for the last 2 hours with no joy, not even getting close.
I am using Form Controls rather than ActiveX controls.
I have a userform that has 28 checkbox's that we go through that we check which ones apply to a report.. To keep those boxes checked as the supervisor's cycle through the reports, I am leaving a 28 digit code next to the report which is created as they check/uncheck the proper checkbox's.
So if say CheckBox10.value = True, then the 10th digit of the ID will change to 1 while keeping the rest of the ID the same.
It might be very simple, but all I need is if I have data on A1, and i have 3 check boxes labeled: NEW, EXISTING, and ARCHIVED. I want it to automatically check the corresponding boxes. So if "NEW" is typed under A1, it'll check "NEW" box. "EXISTING" will check "EXISTING" check box and so on.
I have created a checkbox which places a "TT" on a master sheet when checked on the NEW8 sheet. What I want to know is how do I get the "TT" to delete from the master sheet when unchecked on the NEW8 sheet. Below is what I have...
I have a checkbox linked to cell F2, True=LH (Left Hand) and False = RH.
If I select RH I want to use the valadation list O3:O9, If I select LH I want the list to be Q3:Q9. Is this possible without using code? I am now using two other cells, one for each list RH & LH but it would be more convienant to ckeck the box and have the correct list available.
I am trying to allow the Command Button when clicked to go through multiple conditions before making a decision. So, when someone clicks on Command Button 3 the code should look to see if CheckBox1 is true, then it should check today's date, and if it is between a range of days, or even months, then it would add the number in TextBox1 with the amount already in cell H18. This event will happen every time someone clicks on the Command Button.
The end result is to have several sheets (4 total) for each quarter in the fiscal year, and if the dates are within those parameters, the clicking of the command button will update the correct sheet.
I have a code in my workbook that Runs another ceo on close. It is:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
What I would like to do is have a checkbox that if checked then this code will NOT run. Can this be done?
In a perfect world what would happen is that once an e-mail was sent once then the checkbox would automatically be checked so that there is no possibility of OFA being e-mailed twice with the same info.
I just realized that after create 1200 checkboxes using VBA then excel will prompt an error. Something like object automation bla...bla....bla. What Is the shortest code with VBA to create 2000 checkboxes? I run copy paste function with VBA but seems not working well.
I have about 1500 check boxes and I don't know how to select all and deselect all. Check boxes are on a user form and I really need them all because each on of them represent one daily activity which I use for prediciting future activities.
I really don't know how to code a checkbox correctly. On the sheet, I have a form with CheckBox1 and Checkbox2. I would like Checkbox2 disabled until Checkbox1 is checked. Also, when Checkbox1 is checked, display Image1, otherwise Image1 is hidden. When CheckBox2 is enabled and checked, display Image2, otherwise Image2 is hidden. I know this is real beginner stuff, I'm still a rookie.
I have a userform that creates labels and checkboxes for those lables on the initialize event based on an if statement. I would keep getting an error on a line where I try and use the name of one of those created checkboxes of "variable not defined" as if it hasn't been created, but it was.. Here is the code for the creation:
'Option Explicit Private Sub UserForm_Initialize() 'dynamically add the tickers and funds based on if there is any data inputs for them.
'declaring variables Dim lbl As MSForms.Label Dim i As Integer Dim x As Integer Dim newcheckbox As MSForms.CheckBox
'selects the summary page Sheet1.Select
For i = 7 To 65 If Cells(i, 3) "" Then..................
I need a VBA code that will when used with a Form Control "Check Box" will unhide / hide a row. To be more exact, I'm needind the code to "Hide" row 34 when unchecked and "Unhide" the same row when checked. I'm using Excel 2010.