ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,737
- Office Version
- 2007
- Platform
- Windows
Evening all,
I have put in place the code shown below.
Upon a button press i would like cell A of the last row which has values in to be selected.
Currently the code works but selects the row after what is required each time.
Change x1Up does nothing for me.
Can you advise thanks.
I have put in place the code shown below.
Upon a button press i would like cell A of the last row which has values in to be selected.
Currently the code works but selects the row after what is required each time.
Change x1Up does nothing for me.
Can you advise thanks.
Code:
Private Sub BottomOfPage_Click() Application.Goto Sheets("DATABASE").Range("A" & Rows.Count).End(xlUp).Offset(1, 0), True
ActiveWindow.SmallScroll UP:=10
End Sub