Unchecking A Checkbox Hides A Sheet
Oct 3, 2007
Code that will make it so that when a checkbox is UNCHECKED, the sheet that it originally opened re-hides itself? In other words, I have a mcor that works great that allows for a checkbox when checked to unhide a worksheet and take the user to that sheet. Now I need it si that when it is UNCHECKED, the sheet goes back to it's hidden state. This is what I currently have that UNHIDES it. Obviously somehow I need it to REHIDE it after being unchecked:
How would the corrected code look AFTER being added to this one:
Sub CheckBox615_Click()
Sheets("FedEx Freight Opp Form").Visible = True
Sheets("FedEx Freight Opp Form").Select
Range("B16").Select
End Sub
View 9 Replies
ADVERTISEMENT
Jan 4, 2013
I have a workbook containing many different sheets. What I want to accomplish is when I click on a check box on one sheet, I want the check box in a different worksheet to be unchecked. I have form control checkboxes in my workbook, so I used xlOff as the value.
Here's what I have in my VBA code.
Worksheets("February").CheckBoxes("CheckBox13").Value = xlOff
It is giving me the error "Unable to get the CheckBoxes property of the Worksheet class"
View 4 Replies
View Related
Sep 27, 2008
Is there a macro that will uncheck all the check boxes in a col?
I have check boxes in cells j1:20
View 9 Replies
View Related
Feb 21, 2007
I have MS office 2003.
When I open new excel sheet, It opens with " Getting started " office online help page on right side of sheet.
I removed it by unchecking ViewTool barTask pan. but next time I open new sheet it is still there.
View 9 Replies
View Related
Nov 5, 2012
I have a Multi Select ListBox with values from a range of cells.
I wish to automate the selection of one or more existing value(s) via VBA code so when User views the List, The check mark is visible. This will alert them to Active values.
i.e ListBox:
North
South
East
West.
If the active region is West, The check box beside West is Active, i.e contains an "X"
View 4 Replies
View Related
Dec 4, 2006
While my excel file is protected, I want to have a functionality that allows user to modify on certain areas (of the file), such as below:
1. After the user select number of years at the drop-down list (Main sheet), rows and columns at other related sheets will shift and hide certain values which corresponded from the drop-down list (e.g. if user selects 3 years, then at other sheets, rows from year 1 till 3 will be displayed, and rows for year 4 and year 5 will be hidden).
2. Users can add rows for entering new data at a new line and delete rows for deleting data at the correspond line.
This PC is using the Excel version 2000. At Tools > Protection > Protect Sheet, the available options are 'Content's, 'Objects' and 'Scenarios'. In order to allow users modifying rows/columns (while the file is protected), options such as 'Format Rows' and 'Format Columns' must be checked. But these options are only available in the later versions I believed.
After I have done macro recording for the protection properties at Excel version 2003 (my sister's PC), this is what I got for the .....
View 9 Replies
View Related
Mar 19, 2012
I am completely new to using Macros in Excel. I have a cell with a yes or no question. If the answer to the question is Yes then I want rows 30-42 to be displayed. If the answer to the question is no I want rows 30-42 to disappear.
I have tried several different ways of doing this and no matter which one I use I get the same error. It says, "Argument not optional".
Here are the two different ways I'm trying to do accomplish my goal right now.
Attempt 1:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$BS$15" Then
Select Case Target.Value
Case ""
Rows("30:42").Hidden = False
[Code] ........
Attempt 2:
Private Sub Worksheet_Change(ByVal Target As Range)
For Each Cell In Range("$BS$15")
Select Case Cell.Value
Case vbNullString
Rows("30:42").EntireRow.Hidden = True
Code] ..........
View 9 Replies
View Related
Sep 7, 2008
I have a sheet that has the ability to display information for 60 employees, but most of the time there is only 25 - 30 employee row being used.
The sheets starts are row 1 and goes to row 60. A61 has a formula that counts how many employees there actually are and where the last employee is. (example: if A61=32 than I need to hide rows 32 to row 60)
View 9 Replies
View Related
Feb 21, 2008
I have a macro that hides and unhides certain rows in a worksheet based on what number (1-10) is entered in a cell on that same worksheet. I have this same macro in different worksheets hiding/unhiding different rows based on this same number. So here's the problem: right now I have a number entry cell on every worksheet. I would like to only have it entered on 1 worksheet, with the rest of the macros reading the cell from that 1 worksheet.
View 11 Replies
View Related
Mar 11, 2009
I have a sheet that is autofiltered. Once a user autofilters columns 20, I would like to hide the arrow for that column so the user can no longer autofilter using that column. When I run the code - it hides the arrow in column 20, but then it unfilters all the data . . . can I hide the arrow in column 20 but keep the data as it was filtered before the code ran.
Dim c As Range
Dim i As Integer
i = Cells(2, 1).End(xlToRight).Column
Application.ScreenUpdating = False
For Each c In Range(Cells(2, 1), Cells(1, i))
If c.Column = 20 Then
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
End If
Next
End Sub
View 9 Replies
View Related
Mar 25, 2007
to ensure the user ends up looking at UserForm5 after having closed the UserForm2 with the x sign.
It works just great - the user gets logged on and can use the UserForm2 but when he/she closes the form with the cross and tries to lo on aner using the UserForm5 - which pops up autmatically due to the above code, both of the UserForms get cloed (or hidden).
Private Sub CommandButton1_Click()
Dim popup As Variant
If ExecuteExcel4Macro("'D:[target.xls]Trg Info'!R1C255") _
= UserForm5.TextBox2.Value And ExecuteExcel4Macro("'D:[target.xls]Trg Info'!R1C256") _
= UserForm5.TextBox3.Value Then
With UserForm5
.TextBox2.Value = ""
.TextBox3.Value = ""
.Hide
End With
UserForm2.Show
With UserForm2 .....................
View 9 Replies
View Related
Jan 10, 2007
I currently have a worksheet with a range of A1:P2500. I am trying to create a macro that will check every Row to determine if Column A is blank (""). If Column A is blank in this row, It will hide this row and then continue to the next, until all 2500 rows have been accounted for.
View 4 Replies
View Related
Dec 27, 2013
I have a sheet that have 100 checkbox. i want to select(not check) all checkbox for change their property.
How can I select all? (by macro or other way)
View 8 Replies
View Related
Nov 13, 2006
I Am wondering if you can use a checkbox, to update a cell on a different sheet in the same workbook. CheckBox 1 is the box on say, Tab 2. And if it was ticked, would transfer the name to Say Sheet 2, cell B7.
View 9 Replies
View Related
Oct 9, 2008
I have a query Work sheet that has the names of my worksheets in the following format.. mmm dd, yyyy H15 has a formula that returns the sheetname as a value. What Id like to have is a checkmark that when checked it will take you to that worksheet. Ive played with it and came up with the following...but its not working...any advise??
Sub SHOW_H15()
'
Worksheets("Query").Range("H15").Text .Select
End Sub
Also id like to have the check mark named as "Would you like to see (h15) 's worksheet?"
One more thing...if a value is in H15 Id like the checkmark box to appear. If nothings in H15 dont show the checkmark Box.
View 9 Replies
View Related
Jul 8, 2009
I have 4 sheets
Sheet 1
Sheet 2
Sheet 3
"Checkout"
What i would like:
Rows of data on Sheets 1/2/3 with a checkbox in column A of each row
I check a couple of checkboxes on sheet 1 some on sheet 2 and some on sheet 3
where i put a tick in checkbox they have copied across to next available row in sheet "checkout"
If i tick a checkbox then untick it (maybe changed mind) copied row is removed from checkout sheet.
View 9 Replies
View Related
Nov 26, 2011
I have the below code that loop through a list and hides rows that doesn't contain a value of the Textbox, it works fine but becomes very show where number of records it passed through the loop is greater than 1000, is there more efficient way of writing this code?
Number of cells to loop through is 10000 Max
PHP Code:
Private Sub tboxSearch_Change()
LastRow = Cells(rows.count,5).end(xlup).row
For Each cell In Range(Cells(55, 5), Cells(LastRow,5))
If InStr(UCase(cell.Value), UCase(tboxSearch.Value)) = 0 Then
Rows(cell.Row).EntireRow.Hidden = True
End If
Next cell
End Sub
View 8 Replies
View Related
Jul 25, 2007
macro - show rows ONLY if two columns = each other AND......
Hello Excel Swammis!
I am in need of your assistance again.
I have an Excel report set up as follows:
Col D - Order #'s
Col G - part #'s
Col H - warehouse code for each part # ("N", "M", etc...)
Col K - Qty of part # ordered
Col L - Qty reserved for that part # on the order
List of orders starts on row 9.
If a particular line on the order is filled, then Col K = Col L for that row.
When the whole order is filled, then Col K = Col L for all rows on that order.
What I need is a macro that identifies FULL ORDERS and hides all other rows. So, if Col K = Col L for all rows adjacent to same order #'s in Col D (AND if Col H has value of "N" or "M" for warehouse code), it will be visible. Any orders with even ONE unfilled line will be hidden.
I am also looking for the reverse of this for a seperate macro. IE: Any orders with even ONE line not completely filled, I want all rows for those orders to be visible and all else hidden (again, only if Col H = "N" or "M").
View 9 Replies
View Related
Mar 6, 2013
I have a workbook with a report on Sheet1. If the checkbox in column N is checked, I need the data from that row (column A-S) to be cut and pasted on the next available row on Sheet2. I am still new to VBA/macros. Would this be better if I made a button to update the sheet every morning or could it be automatic when the checkbox is checked (preferred).
View 6 Replies
View Related
Nov 13, 2008
I need to include in my roster sheet that if a client is "present" my instructor will check the box. This (idealistically) should add +1 on the column labeled "classes attended" in sheet labeled 5 groups. I've been at this for 3 hours and still have gotten NOWHERE
View 5 Replies
View Related
Apr 3, 2008
I'm building a worksheet and I been struggling with writing a macro for this particular checkbox. As an example, I have Sheet 1 which contains my checkbox. When the checkbox is checked I want it to unhide sheet2 and when it is not checked, I want it to hide sheet2 again.
View 3 Replies
View Related
Jan 14, 2014
I need to take data from one sheet named "January" and paste it into another sheet named "Projections Sheet".
I want to use a checkbox to do this. So when the box is checked the data is entered into the next free row on the "Projections Sheet" starting in column B.
For example; I have data in "January" row 6, columns A through F. I need this data copied and pasted to "Projections Sheet" in the next free row (starting in row 6) and starting in column B.
Also, when I uncheck the box in January, I'd like the data removed from "Projections Sheet"
View 1 Replies
View Related
Oct 22, 2012
I would like to keep the current macros that I have and add the following:
A macros that can link the check boxes with the corresponding categories and rows in the other two sheets. If the box is checked the corresponding rows in the other sheets should appear.
I have color matched the check boxes with the rows on the two other sheets I would like to be linked up with.
View 2 Replies
View Related
Nov 24, 2007
I need to copy all the cells to a "new worksheet" if the checkboxes are checked.
I have thousand of cell in here but i just narrow it down in this example.
example:
A B C D E F G
21 22 23 24 25 26 checked
31 32 33 34 35 36 unchecked
41 42 43 44 45 46 checked
51 52 53 54 55 56 unchecked
there is a command button in here that when it was click it will open a "new worksheet",
what I need to see in the new worksheet is this:
A B C D E F
21 22 23 24 25 26
41 42 43 44 45 46
View 3 Replies
View Related
Nov 28, 2007
I have a spreadsheet in Excel, there are 13 columns of information being used. 3 of the columns have just data I typed in (model name, item code, original price) the other 10 have formulas (these formulas are price discounts that will be taken off of the original price. 9 of them also have a check box on the top of the column so if the the checkbox is selected, the formula will give the customer the amount discounted off the original price(keep in mind that not all of the columns can be used together, for example, on product "A" maybe only 3 of the boxes can be used whereas on another product maybe 5 can be used). I made a multiple listbox, so that if a customer selects a product or multiple products and clicks the ok button, the sheet will only show the specific products they selected. My problem is that when I press the "OK" button nothing happens. I don't know how to link all of this together.
View 3 Replies
View Related
Feb 25, 2009
married, widows, single checkbox is selected
macro solution
good work.
View 5 Replies
View Related
Apr 16, 2014
I have 3 checkboxes; when one is checked, a set/range of rows should be visible. Only 1 checkbox should be checked at a time.
If checkbox 18 is already checked, and checkbox 20 is then checked, I want the first checkbox unchecked and the rows for checkbox hidden.
I'm using the following code. It works great as long as I check and uncheck the same box before attempting to check another box. But if Checkbox18 is already checked with its rows showing, and I then check checkbox20, the checkbox20 sub runs and as I step through, it jumps to sub checkbox18.
How can I stop my subs from jumping from one to another?
Code:
Private Sub CheckBox18_Click()
If CheckBox18.Value = True Then
Worksheets("TRF").Rows("36:41").Hidden = False
Worksheets("TRF").Rows("42:64").Hidden = True
Worksheets("TRF").Rows("65:76").Hidden = True
CheckBox19.Value = False
[Code] .........
View 9 Replies
View Related
Dec 14, 2008
How can i hide and unhide one checkbox using another one? Can it be done using IF formula?
And also i am using this checkbox to function something else as TRUE/FALSE.
View 6 Replies
View Related
May 9, 2006
I have been using different keywords to find what I need. I have 3 checkboxes: cash, amex, other. I have a subtotal cell. When the appropriate checkbox is checked, the amount from the subtotal cell will auto go to the cell next to the checkbox. Is this VB?
View 6 Replies
View Related
Jul 6, 2013
On the attached Dynamic chart I have attached there are 3 checkboxes to display certain data. My issue is this, if I click the outside checkbox and the ISE checkbox at the same time that is OK, it gives me a comparison of the two data sets in a bar chart. Perfect. If I click just the total checkbox it gives me the total info of the outside and ISE, again perfect.
But, If I click all 3, it doubles all the numbers because total is total and outside + ISE also equals the total.
My Question,
-Is there a way to lock out a checkbox if another is active?
if 1 then no 2 or 3. if 2, 3 is OK but 1 is not. if 3 then 2 is ok but 1 is not?
-If it can't be locked can it do something like; If #1 has a check and you try to enter #2 a red error message could come up saying these two choices together the data will be inaccurate. I'm thinking this might be done in conditional formatting.
If option one is doable and easy, is it also possible to have an error message like in my second idea so people will know why they can't click that second box? This would be my preferred fix but I am open to any other option you may have to accomplish this.
View 4 Replies
View Related