Macro to scroll to Cell A5 please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

Ok I'm in Column AA activating the below macro will take the cursor to A5,
What do i need to do also to scroll to A5. The below macro will take the
cursor to A5 but I cannot see all my worksheet as when saved the cursor will
be in A5 but the worksheet is still showing column AA.

Sub SaveNClose()
Application.Goto Reference:=Worksheets(1).Range("A5").Select
ActiveWorkbook.Close True

Thankyou.
End Sub
 
Hello Anne from Steved

Range("A5").Activate puts the cursor in A5, which is part what I require,
I need the sheet to scroll to A5 to show the left hand margin. As an example
if you are working in Column AA for example and apply your formula it will
put the cursor in Cell A5 but it wil not scroll thefore leaving AA whre I was
working,

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

cursor goto a5 in Sheet1 but 1
Reference is not valid 1
SaveNClose 4
Hide columns based on row values 2
find the last Fred and goto cell 6
Sub SaveNClose() 2
Cell Format - What's wrong? 6
To save and close 5

Back
Top