Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to transfer contents of 'Selected' cell to alternate cell. | Excel Worksheet Functions | |||
'IF' Macro to insert cell contents to alternate cell if cell not e | Excel Worksheet Functions | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
macro to run a separate macro dependent on value in cell | Excel Programming | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |