Share via

VBA Code to align screen

Anonymous
2012-04-06T14:31:37+00:00

How can I align my screen so that when my macro is complete my view of Z1 is in the location of A1.

Bill

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-04-06T14:49:31+00:00

How can I align my screen so that when my macro is complete my view of Z1 is in the location of A1.

I'll assume that by "... Z1 is in the location of A1" you mean in the top left corner of the worksheet window. Try,

' some code

    Application.ScreenUpdating = True

    Cells(Rows.Count, Columns.Count).Activate

    Application.Goto Reference:="R1C26"

' some code

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-04-06T15:04:47+00:00

    As always, THANK YOU VERY MUCH!!!

    Bill

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more