Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steved
 
Posts: n/a
Default Macro to scroll to Cell A5 please

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

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Hi, Steved. All you need is this:

Range("A5").Activate

*******************
~Anne Troy

www.OfficeArticles.com



"Steved" wrote in message
...
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



  #3   Report Post  
Steved
 
Posts: n/a
Default

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.

"Anne Troy" wrote:

Hi, Steved. All you need is this:

Range("A5").Activate

*******************
~Anne Troy

www.OfficeArticles.com



"Steved" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Insert text in a cell with a macro kayabob Excel Discussion (Misc queries) 5 June 22nd 05 05:43 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
How can I edit cell contents with a macro in Excel? Mind the gaps! Excel Discussion (Misc queries) 2 March 23rd 05 08:51 PM
How can I edit cell contents with a macro in Excel? NotAnExpert Excel Discussion (Misc queries) 1 March 23rd 05 01:17 AM


All times are GMT +1. The time now is 01:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"