![]() |
GoToEnd Macro
I need the screen to show the last row of data, with cell A of that row
selected - but this macro isn't doing it. Can someone help? Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub |
GoToEnd Macro
The screen updating being off is one issue. The scroll does nothing with
this off try something like this Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select r=activecell.row Application.ScreenUpdating = True Cells(r,1).select ActiveWindow.ScrollColumn = 1 End Sub -- If this helps, please remember to click yes. "Phil H" wrote: I need the screen to show the last row of data, with cell A of that row selected - but this macro isn't doing it. Can someone help? Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub |
GoToEnd Macro
Hi
Try this: Sub GoToEnd() Application.ScreenUpdating = False Cells(ActiveCell.SpecialCells(xlLastCell).Row, 1).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub Regards, Per "Phil H" skrev i meddelelsen ... I need the screen to show the last row of data, with cell A of that row selected - but this macro isn't doing it. Can someone help? Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub |
GoToEnd Macro
Paul, Getting "variable not defined" error. Thanks, Phil
"Paul C" wrote: The screen updating being off is one issue. The scroll does nothing with this off try something like this Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select r=activecell.row Application.ScreenUpdating = True Cells(r,1).select ActiveWindow.ScrollColumn = 1 End Sub -- If this helps, please remember to click yes. "Phil H" wrote: I need the screen to show the last row of data, with cell A of that row selected - but this macro isn't doing it. Can someone help? Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub |
GoToEnd Macro
Paul, I inserted Dim r as Interger and it works (form another macro). Thanks
for the help. Phil "Paul C" wrote: The screen updating being off is one issue. The scroll does nothing with this off try something like this Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select r=activecell.row Application.ScreenUpdating = True Cells(r,1).select ActiveWindow.ScrollColumn = 1 End Sub -- If this helps, please remember to click yes. "Phil H" wrote: I need the screen to show the last row of data, with cell A of that row selected - but this macro isn't doing it. Can someone help? Sub GoToEnd() Application.ScreenUpdating = False ActiveCell.SpecialCells(xlLastCell).Select ActiveWindow.ScrollColumn = 1 Application.ScreenUpdating = True End Sub |
All times are GMT +1. The time now is 08:02 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com