Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub CloseRows()
Application.ScreenUpdating = False Application.EnableEvents = False Dim ws As Worksheet Sheets("Sheet 1").Select For Each ws In ThisWorkbook.Worksheets With ws ..Unprotect Password:="*****" '.Columns("A:W").AutoFit For i = 31 To 1000 ..Cells.EntireRow.Hidden = False If .Cells(i, 1).Value = "" Then ..Cells(i, 1).EntireRow.Hidden = True End If Next i End With Next ws 'For Each ws In ThisWorkbook.Worksheets 'ws.Protect Password:="*****", AllowFormattingCells:=True, AllowFormattingColumns:=True, DrawingObjects:=False, Contents:=True 'Next ws Application.ScreenUpdating = True Application.EnableEvents = True End Sub But now it does nothing. I think I may have changed a setting? Help. this is silly. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
flash object dont work in my excel work sheet | Excel Discussion (Misc queries) | |||
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? | Excel Programming | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) | |||
Is there away to keep "auto save" from jumping to the first work sheet in the work book? | New Users to Excel |