steve400243
Active Member
- Joined
- Sep 15, 2016
- Messages
- 429
- Office Version
- 365
- 2016
- Platform
- Windows
Hello, I am using this code to filter out unused rows in the range noted. I am trying to figure out if the code can be adjusted to automatically adjust column width in columns A thru S?
Thank you for the Help!
Thank you for the Help!
VBA Code:
Private Sub Worksheet_Activate()
Dim r As Range, c As Range
Set r = Range("a13:a39")
Application.ScreenUpdating = False
For Each c In r
If c.Value = "" Then
c.EntireRow.Hidden = True
Else
c.EntireRow.Hidden = False
End If
Next c
Application.ScreenUpdating = True
End Sub