I have a cell on Sheet1 which contains the formula =LOOKUP(2,1/(F:F<>""),F:F)
This gives me the last entry in column F
On Sheet2 and so on, I have this code in a module
Then have this formula in a cell =PrevSheet(I3)
What I'm trying do is eliminate the separate cell on the previous sheet that contains =LOOKUP(2,1/(F:F<>""),F:F) and somehow just pull the last entry in column F
Thanks for any help
This gives me the last entry in column F
On Sheet2 and so on, I have this code in a module
Code:
Function PrevSheet(RCell As Range)
Dim xIndex As Long
Application.Volatile
xIndex = RCell.Worksheet.Index
If xIndex > 1 Then _
PrevSheet = Worksheets(xIndex - 1).Range(RCell.Address)
End Function
What I'm trying do is eliminate the separate cell on the previous sheet that contains =LOOKUP(2,1/(F:F<>""),F:F) and somehow just pull the last entry in column F
Thanks for any help
Last edited: