Nightlytic
Member
So... I see plenty of VBA codes online but I can't get any to work :/ I'm not very good at VBA.
I have a spreadsheet, I set it to have Col. AT say either "1" or "2", and I want a VBA that will look at col. AT, rows 1 through to 1315, and hide entire rows where AT=1, and unhide them where AT=2... This macro should stop at row 1315. I think I will attach it to a button...
I will show you one example of what I saw online:
Sub PG1()
If Range("E50").Value ="Passed"Then Rows("51:51").EntireRow.Hidden =TrueElse
If Range("E50").Value ="Failed"Then Rows("51:51").EntireRow.Hidden =FalseEnd
IfEndSub
I played around with it changing the columns and rows but it's tossing up errors.
I have a spreadsheet, I set it to have Col. AT say either "1" or "2", and I want a VBA that will look at col. AT, rows 1 through to 1315, and hide entire rows where AT=1, and unhide them where AT=2... This macro should stop at row 1315. I think I will attach it to a button...
I will show you one example of what I saw online:
Sub PG1()
If Range("E50").Value ="Passed"Then Rows("51:51").EntireRow.Hidden =TrueElse
If Range("E50").Value ="Failed"Then Rows("51:51").EntireRow.Hidden =FalseEnd
IfEndSub
I played around with it changing the columns and rows but it's tossing up errors.