I've searched and searched and couldn't find a solution for what I'm trying to do.
I have multiple sheets that are the exact same (90 sheets). I need to populate a formula in cell e4 on each of the sheets and autofill the forumla to the last row of data on each sheet. I'm looking for a vba solution. I've seen many solutions for doing this on one tab and I can get that, but i need/want to do it on all of the sheets at the same time. Is this possilbe?
This is an example of what I have:
Sheets(Array("Apple", "Banana", "Cucumber", "Pear", "Orange")).Select
Range("E4").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-4]="""","""",IF(ISERROR(VLOOKUP(RC[-4],WRAP!R2C2:R42C3,2,FALSE)),1,(VLOOKUP(RC[-4],WRAP!R2C2:R42C3,2,FALSE))))"
Range("E4").Select
lastrow& = Range("A:d").Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Range("E4").Autofill Destination:=Range("e4:e" & lastrow)
I apologize if this has been ask3ed/answered before, but I did search and couldn't find exactly what I was looking for.
Bookmarks