I have a spreadsheet where I filter from row 1 column W and then apply a formula to the next visible cell. The next visible cell varies each week. It could be 1160 one week then 1165 the next, etc.
How can I write macro code that will pick up on the next visible cell no matter what row it is. It could be something simple that says "start on E1 and drop down to the next visible cell in column E" because then I don't mind using active cell formula entry.
Does anyone have any ideas? Thank you.
Here's what I have:
With Sheets("Data").Range.SpecialCells(xlCellTypeVisible)("W1")
.Value = "My Formula"
End With