Row Hide
May 7, 2009If I want to hide row a15 when cell value in k5=1 and also if cell value in k5=2 then hide row A16.
View 9 RepliesIf I want to hide row a15 when cell value in k5=1 and also if cell value in k5=2 then hide row A16.
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
I 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......................
If A1 is also found below A1 (A2,A3,etc) then "HIDE" otherwise "DON'T HIDE"
I want to create a formula which finds out if a value exists below it in the same column. I could then use a filter to remove rows contain the word "HIDE" which will leave me with only rows with DON't HIDE. Then Column A will only contain unique values.How would I create a formula like this?
How can I hide the value in column H when there is no value in column E, but still be able to fill down the formula in column H as many rows as I want?
In other words, I don't want to see the totals in column H in rows where the items haven't been sold yet (col. E) or in rows where there is no other data at all. Items are not always sold in the order in which they were purchased but I still need the formula in column H to be intact.
I have a big formula with 6 IF functions and i whant to display 0 when formula returns #N/A.
I can't use IF(ISERROR()) because there are to many IF's functions
how can i hide zero from Pt. i am using xl2003
View 9 Replies View Relatedis there a macro or bit of VBA code that can hide a worksheet tab when criteria in an if function is true???
Im wondering if there is a way in Excel, maybe a function or something, so that if the contents of a particular cell are either blank or have a specific text, then excel will automaticaly Hide the row that contains that cell?
View 6 Replies View RelatedI use an excel spreadsheet alot for billing in the construction industry. There are premade formulas in this spreadsheet. When no input value is present, the total column(s) either show a "$0.00" or show "#DIV/0!". How do I hide these results for the rows that do not yet have any input? I have seen it done on other speadsheets
View 3 Replies View RelatedThere are empty cells in a column.
Where the cells are empty, they are reading #VALUE! because I have copied down a formula in all other cells above and below etc.
Is there any quick way of making the #VALUE! disappear or by hiding?
(Other than the copied formulas in the column, there are also conditional formatting so when the numbers drop below zero value, it turns the numbers red).
It's a long sheet and I want to avoid deleting each #VALUE! by hand!
i am using hyperlink in sheet 1 name history and sheet 2 name advance sheet 3 total progress..i want to hide the tab for selection by mouse.how to hide this tab,so user will click only the button that hyperlink.
View 3 Replies View RelatedIs is possible to hide a text box?
View 3 Replies View RelatedI have a worksheet that has a quantity column "A" and if there is no value in it I would like to hide all rows without values so only rows with quantities remain. Based on the code I have supplied below you will notice I have ranges of cells that I want to work with. The code I have works well with the exception it takes a long time maybe 30-45 seconds to perform the operation. I was wondering if there is a faster way to perform the function. I have saved it as a macro which I tied to a button.
[Code] .....
I want to unhide one row at a time but then also have an option to hide a row if it is not needed. I am using an ActiveX button to unhide one row at a time and that is working well, but what code would I need for (I assume) a second ActiveX button to hide one row at a time.
Unhiding is:
[Code] ........
Hiding is...?
what would be the vba code to hide a button according to the value of a cell?
View 9 Replies View RelatedI have attached a spreadsheet, which has a master data sheet and 2 other worksheets (Sheet 1 and Sheet2) that have linked Choose Functions from the main data worksheet.
I would like to send copies of Sheet 1 and Sheet 2 to seperate people, however would not like them to be able to view each others worksheets or the Master Data sheet, as it is sensitive data.
Does anyone know how I could create a macro, that enables me to click a button which would protect & hide two of the worksheets including the name of the worksheet (e.g. protect & hide worksheet "Data" and "Sheet 2"). This way I could send the entire spreadsheet to someone while hiding the sensitive information.
I have sheet 1 and 2 in a work book. Sheet 1 is a list of data consisting of names and address, and quantity, type, price, etc of items shipped to them. Sheet 2 takes the data from sheet one and computes certain formulas. I have allotted up to 100 rows of data to automatically compute, however I rarely need that much. Basically it goes like this. When I open the spreadsheet sheet 1 is not actually blank, instead in cell A1 I have the phrase "Customer Name", in cell B1 I have the phrase "Account Number" and so one. I do this so my coworkers know which info must go in which cells. As long as the info is put in the correct spot than cell A1 in sheet 2 with do X and B1 will do Y and so on. so if I put in 10 customers with accompanying data then the first 10 rows of sheet 2 will compute formulas and the other 90 rows will simple state "No Data" in the cells. What I would like to do is create a macro or assign a command button to HIDE all the rows that say "No Data" in column A. So if I have 30 customers entered then when I go to Sheet 2 all I have to do is hit a button and rows 31-100 become HIDDEN, not deleted.
View 3 Replies View RelatedI'm working on a project where I have to show profit in a column for internal purposes.
However, the same document needs to be emailed over to the client.
Obviosuly, I don't want to show the profit on the clients version.
What's the best was forward to create a non-profit showing version for the client do you think?
THere's approx 300 pages to the workbook so it needs to be a simple process etc.
I know this has been kicked around for a long time, but does anyone know of a way where the user cannot see or change the code. Either would be acceptable, but I would prefer where the user can not see the code.
View 2 Replies View RelatedOk what i would like is when i open a certain excel file it hides the command bars the sheet prity much all of excel. though Must still be able to show the userform.
View 9 Replies View RelatedI use several different userForms at different times in my macro. I am having an issue where soemtimes Excel will be stuck (not frozen) after I close a form. Its almost like the form is being hidden but Excel thinks that it is still visible, so execution halts.
I've tried leaving the form with both me.hide and unload me. My code is pretty lengthy, so I don't think submitting it is appropriate. I believe my problem is my own lack of knowledge on hide vs unload.
Can anyone help me out here?
Ive opened some files here in this forum that when you just click a button, macros will run. But when you view the macros, there's none. How can i do this? Some kind of an executable one. I have like 8 macros.
View 4 Replies View RelatedIs there a way that you can keep formulas from showing 0's. I want the
totals to only show when the value is < 0
This is a simple division function using 2 cells. Normally if the cell referring to the numerator of the division forumla is blank you will get the "divide by zero error" (#DIV/0!). I have this sheet where there is no formula in the cell content (cell E1) but if I enter numbers in cell B1 and D1 it calculates:
=(B1-D1)/B1
How is this formula hidden? Normally if I would want to hide #DIV/0! I would use an IF function but I would still see the formula and if fuction if I click on the cell. Whats odd the formula doesnt show when I click on the cell but once i enter data in the cells the forumla appears.
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 am creating a spreadsheet which shows the date of when the training was cpmpleted. I have added an expiry column which gives the date 3 years from start date no problems. The trouble i am having is that the column will return an #VALUE when no training date is entered. ie: the person has had no training so no date can be entered.
I have the following code:
Code:
Private Sub hidefixcells_Click()
'Hide the first 4 columns on all worksheets and adjust cells to fit automatically
Sheets("All Employees Annualized").Select
Cells.Select
Cells.EntireColumn.AutoFit
Columns("A:D").Select
Range("D1").Activate
Selection.EntireColumn.Hidden = True
[Code] ........
I want to add a vba to this code that will hide every row from the last filled row down. This will need to be done for sheets 1, 2 and 3. Currently, I am doing it manually, but I am hoping it could be done by code.