VBA searching through rows and their associated columns and hide column if there is nothing
问题 I am new to VBA programming. I would like to search through the worksheet, and find "N" or "TR" on row 6 Then, For every cell in the column of "N" or "TR" if all the cells are blank, then delete/ hide the column if the cells are not blank, highlight the cells that are in blank This sounds easy but I think it requires two for loops. Sub checkandhide() Set r = Range("6:6") Rows("7:7").Select For Each Cell In r Selection.Find(What:="N", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart,