andrewvanmarle
New Member
- Joined
- Aug 11, 2015
- Messages
- 40
Hi all,
I googled this first, found several sites citing the same VBA code:
And then enter this to the cell in question:
=PrevSheet(A1)
but I get no value....
I assume im doing something wrong??
I googled this first, found several sites citing the same VBA code:
VBA Code:
Function PrevSheet(rCell As Range)
Application.Volatile
Dim i As Integer
i = rCell.Cells(1).Parent.Index
PrevSheet = Sheets(i - 1).Range(rCell.Address)
End Function
And then enter this to the cell in question:
=PrevSheet(A1)
but I get no value....
I assume im doing something wrong??