Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I add rows to a sheet by a macro.
I want to keep the last row added visible on the screen , no matter what is the size of the window is. Thanks AR |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
don't know what your code looks like, but maybe you can adapt this to do what
you want: Sub test() Dim ws As Worksheet Dim lastrow As Long Set ws = Worksheets("sheet1") lastrow = ws.Cells(Rows.Count, "A").End(xlUp).Row Application.Goto ws.Range("A" & lastrow - 20), scroll:=True End Sub -- Gary "BilBull" wrote in message ... I add rows to a sheet by a macro. I want to keep the last row added visible on the screen , no matter what is the size of the window is. Thanks AR |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try putting a select for the last row added.
-- HTH, Barb Reinhardt "BilBull" wrote: I add rows to a sheet by a macro. I want to keep the last row added visible on the screen , no matter what is the size of the window is. Thanks AR |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Gary Keramidas" wrote: don't know what your code looks like, but maybe you can adapt this to do what you want: Sub test() Dim ws As Worksheet Dim lastrow As Long Set ws = Worksheets("sheet1") lastrow = ws.Cells(Rows.Count, "A").End(xlUp).Row Application.Goto ws.Range("A" & lastrow - 20), scroll:=True End Sub -- Gary "BilBull" wrote in message ... I add rows to a sheet by a macro. I want to keep the last row added visible on the screen , no matter what is the size of the window is. Thanks AR |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problems with Visible and Screen | Excel Discussion (Misc queries) | |||
Visible Screen | Excel Programming | |||
Items Added to Right-Click Menu Only Visible From Some Sheets | Excel Programming | |||
Items Added to Right-Click Menu Only Visible From Some Sheets | Excel Programming | |||
color not visible on screen | Setting up and Configuration of Excel |