Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets ws.Unprotect Password:="******" ws.Columns("A:W").AutoFit Dim iLastrow As Integer 'This is your last row in col a iLastrow = Range("A910").End(xlUp).Row For i = 30 To iLastrow If Cells(i, 1).Value = "" And Cells(i, 1).EntireRow.Hidden = False Then Cells(i, 1).EntireRow.Hidden = True End If Next i Next ws I've got 12 sheets. Sheet 1 works with the exception of the last 5 rows (they do not get hidden), and sheets 2-12 have formula's that simply do this... =IF(January!A395="","",January!A395) What am I missing/doing wrong? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort works in 2003 but not in 2000 | Excel Programming | |||
It works but I need better code... | Excel Programming | |||
sort macro that works after leaving worksheet | Excel Discussion (Misc queries) | |||
Code works for any WBK except the PMW | Excel Programming | |||
Why won't this code works | Excel Programming |