I have this code to identify a word in a column then add a row based on the value. However, I have multiple sheets within the file. How do I loop through for each sheet to perform this code.
I.e. - "Sheet x", "Sheet y", etc
Sheets("Sheet x").Select, [Perform Code] -
Then Sheets("Sheet y").Select [Perform Code], etc
![]()
Sub ADDROW() Lastrow = 1000 For j = 5 To Lastrow If Cells(j, "P").Value = "ADD" Then Rows(j).Insert Shift:=xlDown Rows(j - 1).Copy Rows(j) End If Next End Sub
Bookmarks