See if this works for you.
HTH![]()
Sub HideEmptyColumns() Dim cell As Range For Each cell In ActiveSheet.Range("BB26:IA26") cell.EntireColumn.Hidden = (Len(cell.Text) = 0 _ And Len(cell.Offset(26).Text) = 0) Next cell End Sub
Jason
See if this works for you.
HTH![]()
Sub HideEmptyColumns() Dim cell As Range For Each cell In ActiveSheet.Range("BB26:IA26") cell.EntireColumn.Hidden = (Len(cell.Text) = 0 _ And Len(cell.Offset(26).Text) = 0) Next cell End Sub
Jason
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks