Hide Row If Cell I Is DONE
Jan 11, 2010How do I get a row to hide if the cell in column I is "Done" ?
View 9 RepliesHow do I get a row to hide if the cell in column I is "Done" ?
View 9 RepliesI want to create a macro that checks whether a specified range of columns is hidden, and
a) hide them if they are not hidden, or
b) unhide them if they are hidden,
i.e. toggle the Hide state.
What method can I use to query the hidden state of a selected range of columns and return a boolean value?
I have a macro in which i can enter the rows i want to hide.
If i want to hide "position 32" i have to enter the number 8 of the row. This works fine. But now if i want to hide the "position 32" from Sheet1 it also should hide the rows 4-8 from Sheet2 [Data with 32].
Or if i hide "position 34" in Sheet1 [row 10] it also should hide the rows 14-18 in Sheet2.
Sub Button294_Click()
If Sheet1.Range("A34:A94") = "HIDE" Then
For Each cell In Range("A27:A94")
If UCase(cell.Value) = "HIDE" Then
cell.EntireRow.Hidden = True
End If
End Sub
How do I hide the number in one cell? I still need that number to exist as it has been included in a sum so I can't delete it.
View 2 Replies View RelatedI have to hide the formula in the cell. nobody should see the formula in the cell without password.
View 1 Replies View Relatedhow to hide a value on a cell when another cell is not yet populated?
like for example:
A1 is Blank A2 has a formula of workday(A1,2) a date will appear on the A2 cell and I want not to show or be hidden the date in A2 until A1 is populated
formula on the attached spreadsheet (Questions UK) I would like the following to happen:
If D3 is YES then rows 91 to 319 hide
If D3 is NO then rows 6 to 89 hide
If D4 is YES then rows 6 to 89 hide and 164 to 319 hide
If D4 is NO then rows 91 to 162 hide
If D5 is YES then row 6 to 162 hide
If D5 is NO then row 164 to 319 hide
I would like to run a macro that searches column [AS] and hides any rows in that column that contain "0".
View 6 Replies View RelatedHow would I write a macro to hide a range of rows If a cell value is zero, then do the same for five additional ranges of rows?
In my words:
If AT214=0, hide rows 214 to 244
and
If AT245=0, hide rows 245 to 278
and
If AT279=0, hide rows 279 to 311
and
If AT312=0, hide rows 312 to 344
and
If AT345=0, hide rows 345 to 377
and
If AT378=0, hide rows 378 to 410
I'm looking for a way to hide a row if the cell is column A is empty. On the attached sheet I'm looking to hide the empty rows below the last vehicle registration.
View 2 Replies View RelatedWhat i want to is add some code into a worksheet where it hides rows 5:35 and shows rows 37:47 if the value of cell C3 = "Races" but shows rows 5:35 and hides rows 37:47 if the value of cell C3 s not "Races".
View 2 Replies View RelatedI would like to hide all rows under a given cell value.
For example, if Range("BJ9")=9.
I want to hide all cells in range "A10:A56".
More generally, I would like to hide all cells Range("A" & i) for i=Range("BJ9").Value To 256.
Is there a way to hide a certain amount of rows (122:136) when cell R116 has no value, but with not having to enable macros?
View 4 Replies View RelatedI am trying to write a macro which will hide and show row 15 based on the value which gets input into E9.
Part 1 here is working and when E9 = "DP Deliverable" row 15 does appear, but on the converse, when I input something besided DP Deliverable into E9, row 15 does not hude.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$9" Then
If Range("E9").Value = "DP Deliverable" Then
Call Show_DP
If Target.Address = "$E$9" Then
If Range("E9").Value "DP Deliverable" Then
Call Hide_DP
End If
End If
End Sub
automatically hiding a row(s) based on a cell value.
I have various numbers on column K, rows 12-47.
Example:
k12=680
k13=76.38
k14=0
k15=55.33
k16=0
etc.
In the above example, I would like row 14 and 16 to automatically hide (and unhide if the formula calls for the cell to be greater than 0)
Dim varFind As Variant
Set varFind = Cells.Find(What:="Closed", After:=Range("A1"), LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
If Not varFind Is Nothing Then Range(varFind.Address) = Hidden
something like
Then Range(varFind.Address) = Range(varFind.Address).row.Hidden
I have a button from the Forms toolbar.
If I enter a number in cell C2 "say 1859' then hit a button... An input box comes up I have to enter Team number Once entered, I would find the 1859 in a list of data Go to the Column with "teams" (Column Q) enter the input number then hide this row that has the 1859.
I was wondering if it is possible to hide workbook tabs according to cell value?
Take for instance, if cell B30 in sheet "Fee Schedule Finder" is blank then the sheet "ES Schedule" is hidden. I know it would be some sort of VBA code but I am lost on this one.
If I didn't explain well enough please let me know!
I need a macro that hides the rows where two cells individually and unrelatedly has a cellvalue=zero.
I have pasted an example of what i mean. The rows coloured needs to be hided.
CompanyRatingMicrosoft0Apple1504000IBM200Dell0015
I would like a macro where I it will examine Cells A8 down to A27 to see if there is a value. If there isn't a value, I want that row hidden. I would like for it to always run (i.e. if a value is put into that cell, the row reappears, otherwise it is always hidden).
View 9 Replies View RelatedI have a list of 24 columns (12 months each for forecast and actual data). I want to put VBA code in the worksheet that will hide a column based on a cell value in each column. On line 4 there is a formula that returns either "show" or "no". The columns are AS:BP. The code needs to run on a change in any of the cells AS4:BP4.
View 9 Replies View Related1. I have Column I, K, L which contain Values (no formulas/references)
2. I need each cell in those column to divide each value by corresponding # in column H. For example I2=10, macro needs to turn I2 = 10/H2. Then everything needs to be formated to 3 decimals. And I need the same to happen for each Cell in Column I, K, L. At the end those columns need to be hidden.
Here is the code that was written before (i'm getting an error in highlighted part):
Dim MyRange As Range, NewFormaula As String, Delim As Range
Dim Cell As Range
Dim MyString As String
Dim Format As Range
Dim ws As Worksheet
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Delim = "@"
For Each ws In Worksheets
Select Case ws.Name
Case "PBDay locks", "Total Locked Pipeline"
Set MyRange = ws.Range("I:I")........................
I have this code as mentioned below.
If a cell in column U is empty, I mean really empty, so no zero but a blank cell, I want to hide the whole row. Is this possible?
Sub kleuren()
For Each c In [U3:U500]
If c "" Then
Select Case c - Date
Case Is
I have a worksheet with an age row of 20 - 99 (and a bunch of other data)
A user enters the starting age, and then the sheet fills in the rest of the cells.
If the user enters 50, the age fills from 50 to 130.
Before printing, I manually hide the rows (using the hide row command) over age 99.
Is there an easy way to do this without macros? I am Excel impaired!
I tried using Auto filter - but I have to rerun the filter each time (it is not automatic).
The following code hides all columns in my worksheet from AG:IV if the value in row 37 is "Attendance". I really need the flip side of this procedure as well, though, i.e., to hide all columns from AG:IV if the value in row 37 is anything OTHER than "Attendance".
For a = 32 To 255
If Range("a37").Offset(0, a).Value = "Attendance" Then
Range("a37").Offset(0, a).EntireColumn.Hidden = True
Next a
I would simply like a single cell not to print. I would like it to be visible at all times however.
View 9 Replies View RelatedI need a macro to go through and look at each column between and including E to AW. If it sees a 0 in the cell in row 1 then I want it to hide that column completely and go to the next column.
View 8 Replies View RelatedIm wondering is ther any possibility to filter colums. My sheet is having column headings as 1's and 0's .Columns with '0' as heading are to be hidden ..can i add any filter.
View 2 Replies View RelatedI am filtering the data displayed in a chart by hiding columns. I would also like to filter the X-Axis labels by hiding columns. If I do this manually I have no problems but when I run the following macro the chart gives a reference error for the X-axis labels.
Sub ShowA2()
Application. ScreenUpdating = False
num = Sheets.Count
Sheets("X-Axis").Activate
Range(Columns(1), Columns(256)).Select
Selection.EntireColumn.Hidden = False
For a = 1 To 5
Sheets(num - a).Activate
If ActiveSheet.Name = "A2 Data" Then
Columns("A:Q").Select
Range("A10").Activate
Selection.EntireColumn.Hidden = False
Sheets("X-Axis").Activate
Columns("A:E").Select......................