Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Macro to Go To a Certain Cell

I'm trying to write a Macro that will go to a certain cell, say A388, that's
easy, but how do I ensure that when I go there via the macro that A388 is
ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Macro to Go To a Certain Cell


with an object
application.goto Range("a388"), true
application.goto Range("sheet2!a388"), true


with a string you need r1c1 notation

application.goto "sheet2!R388c1", true



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John" wrote:

I'm trying to write a Macro that will go to a certain cell, say A388,
that's easy, but how do I ensure that when I go there via the macro
that A388 is ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Macro to Go To a Certain Cell

Thanks KeepITcool


"keepITcool" wrote in message
...

with an object
application.goto Range("a388"), true
application.goto Range("sheet2!a388"), true


with a string you need r1c1 notation

application.goto "sheet2!R388c1", true



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John" wrote:

I'm trying to write a Macro that will go to a certain cell, say A388,
that's easy, but how do I ensure that when I go there via the macro
that A388 is ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Macro to Go To a Certain Cell

Another query

Within the same code how can I 'Freeze Panes" - say 2 columns over and 1 Row
down from where the upper left most column resides, that after
application.goto Range("sheet2!a388"), true

Thanks





"keepITcool" wrote in message
...

with an object
application.goto Range("a388"), true
application.goto Range("sheet2!a388"), true


with a string you need r1c1 notation

application.goto "sheet2!R388c1", true



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John" wrote:

I'm trying to write a Macro that will go to a certain cell, say A388,
that's easy, but how do I ensure that when I go there via the macro
that A388 is ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro to Go To a Certain Cell

Sub AATester()
Application.Goto Range("sheet2!a388"), True

ActiveCell.Offset(1, 2).Select
ActiveWindow.FreezePanes = True
End Sub



--
Regards,
Tom Ogilvy


"John" wrote in message
...
Another query

Within the same code how can I 'Freeze Panes" - say 2 columns over and 1

Row
down from where the upper left most column resides, that after
application.goto Range("sheet2!a388"), true

Thanks





"keepITcool" wrote in message
...

with an object
application.goto Range("a388"), true
application.goto Range("sheet2!a388"), true


with a string you need r1c1 notation

application.goto "sheet2!R388c1", true



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John" wrote:

I'm trying to write a Macro that will go to a certain cell, say A388,
that's easy, but how do I ensure that when I go there via the macro
that A388 is ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Macro to Go To a Certain Cell

Thanks Tom


"Tom Ogilvy" wrote in message
...
Sub AATester()
Application.Goto Range("sheet2!a388"), True

ActiveCell.Offset(1, 2).Select
ActiveWindow.FreezePanes = True
End Sub



--
Regards,
Tom Ogilvy


"John" wrote in message
...
Another query

Within the same code how can I 'Freeze Panes" - say 2 columns over and 1

Row
down from where the upper left most column resides, that after
application.goto Range("sheet2!a388"), true

Thanks





"keepITcool" wrote in message
...

with an object
application.goto Range("a388"), true
application.goto Range("sheet2!a388"), true


with a string you need r1c1 notation

application.goto "sheet2!R388c1", true



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John" wrote:

I'm trying to write a Macro that will go to a certain cell, say

A388,
that's easy, but how do I ensure that when I go there via the macro
that A388 is ALWAYS at the top most corner of my worksheet.

Hope that makes sense

Thanks











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
Macro to transfer contents of 'Selected' cell to alternate cell. Gryndar Excel Worksheet Functions 7 December 20th 08 09:58 PM
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
macro to run a separate macro dependent on value in cell scottwilsonx[_13_] Excel Programming 3 July 26th 04 02:30 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 05:46 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"