I use windownsXP and excel 2002.
I have 10 sheet in my excel file. now i stay in cell quot;a1 sheet 1quot; and sheet
10 cell a10 is active cell. I want to jump from cell a1 sheet 1 to active
cell in sheet 10
(ex. jump to sheet 2 cell a2 = press F5 --gt; key sheet 2!a2 --gt; enter
jump to active cell in sheet 10 = ?
thank you in advance
--
mai
Hi Mai,
I'm not sure I follow your question.
If you want A1 to be the active cell when Sheet1 is activated, A2 to be
the active cell when Sheet2 is activated, A3 to be the active cell when
Sheet3 is activated, A4 to be the active cell when Sheet4 is activated
etc up to Sheet10, where the active cell upon activation will be A10;
then one way is to paste this code into the ThisWorkbook code module:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Range(quot;Aquot; amp; Right(Me.ActiveSheet.Name, Len(Me.ActiveSheet.Name) -
5)).Select
End Sub
To get the code into the ThisWorkbook code module..
1. Copy the above code.
2. Right click any of the worksheet tabs to view the contextual menu.
3. Select View code from the contextual menu
4. If the Project Explorer is not visible then go Viewgt;Project Explorer
5. Double click the ThisWorkbook icon to open that code module
6. Paste the code into the blank module.
7. Press Alt F11 to exit the VBA EditorHi Mai,
Use this version of the code which has a line break so that it pastes
correctly into the code module.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Range(quot;Aquot; amp; Right(Me.ActiveSheet.Name, _
Len(Me.ActiveSheet.Name) - 5)).Select
End Sub
Ken JohnsonYou could put this formula in cell A1 of Sheet 1:
=HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
Note that there is an apostrophe after the # and before the !. This
will put the word quot;jumpquot; in cell A1 and when you click this it will
take you to cell A10 of Sheet 10.
Hope this helps.
PeteThank for you answer.
but I want to use press key F5 and jump to other sheet ...,active cell in
other sheet .....
--
maiquot;Petequot; เขียน:
gt; You could put this formula in cell A1 of Sheet 1:
gt;
gt; =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt;
gt; Note that there is an apostrophe after the # and before the !. This
gt; will put the word quot;jumpquot; in cell A1 and when you click this it will
gt; take you to cell A10 of Sheet 10.
gt;
gt; Hope this helps.
gt;
gt; Pete
gt;
gt;
Thank for you answer.
but I want to use press key F5 and jump to other sheet ...,active cell in
other sheet .....
--
maiquot;Ken Johnsonquot; เขียน:
gt; Hi Mai,
gt;
gt; Use this version of the code which has a line break so that it pastes
gt; correctly into the code module.
gt;
gt; Private Sub Workbook_SheetActivate(ByVal Sh As Object)
gt; Range(quot;Aquot; amp; Right(Me.ActiveSheet.Name, _
gt; Len(Me.ActiveSheet.Name) - 5)).Select
gt; End Sub
gt;
gt; Ken Johnson
gt;
gt;
Not possible using go to (F5)
--
Regards,
Peo Sjoblom
Portland, Oregon
quot;mongkolkornquot; gt; wrote in message
...
gt; Thank for you answer.
gt; but I want to use press key F5 and jump to other sheet ...,active cell in
gt; other sheet .....
gt;
gt; --
gt; mai
gt;
gt;
gt; quot;Petequot; เขียน:
gt;
gt;gt; You could put this formula in cell A1 of Sheet 1:
gt;gt;
gt;gt; =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt;gt;
gt;gt; Note that there is an apostrophe after the # and before the !. This
gt;gt; will put the word quot;jumpquot; in cell A1 and when you click this it will
gt;gt; take you to cell A10 of Sheet 10.
gt;gt;
gt;gt; Hope this helps.
gt;gt;
gt;gt; Pete
gt;gt;
gt;gt;hi Peo Sjoblom
use F5 key to go to cell
ex. jump to sheet 2 cell a1 = press F5 --gt; type quot; sheet2!a1 quot; --gt; Enter
But I want jump to Actived cell in sheet ... what is reference sheet
and cell to type ?
--
maiquot;Peo Sjoblomquot; เขียน:
gt; Not possible using go to (F5)
gt;
gt; --
gt; Regards,
gt;
gt; Peo Sjoblom
gt;
gt; Portland, Oregon
gt;
gt;
gt;
gt;
gt; quot;mongkolkornquot; gt; wrote in message
gt; ...
gt; gt; Thank for you answer.
gt; gt; but I want to use press key F5 and jump to other sheet ...,active cell in
gt; gt; other sheet .....
gt; gt;
gt; gt; --
gt; gt; mai
gt; gt;
gt; gt;
gt; gt; quot;Petequot; เขียน:
gt; gt;
gt; gt;gt; You could put this formula in cell A1 of Sheet 1:
gt; gt;gt;
gt; gt;gt; =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt; gt;gt;
gt; gt;gt; Note that there is an apostrophe after the # and before the !. This
gt; gt;gt; will put the word quot;jumpquot; in cell A1 and when you click this it will
gt; gt;gt; take you to cell A10 of Sheet 10.
gt; gt;gt;
gt; gt;gt; Hope this helps.
gt; gt;gt;
gt; gt;gt; Pete
gt; gt;gt;
gt; gt;gt;
gt;
gt;
I tried using the suggestion: =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
But it doesn't seem to work.
All I want to do is to jump to a certain cell in another sheet (same
workbook) when I click on a cell which contains the formula. Somehow, I'm not
succeeding using hyperlink. what seems to be my problem?
quot;mongkolkornquot; wrote:
gt; Thank for you answer.
gt; but I want to use press key F5 and jump to other sheet ...,active cell in
gt; other sheet .....
gt;
gt; --
gt; mai
gt;
gt;
gt; quot;Petequot; เขียน:
gt;
gt; gt; You could put this formula in cell A1 of Sheet 1:
gt; gt;
gt; gt; =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt; gt;
gt; gt; Note that there is an apostrophe after the # and before the !. This
gt; gt; will put the word quot;jumpquot; in cell A1 and when you click this it will
gt; gt; take you to cell A10 of Sheet 10.
gt; gt;
gt; gt; Hope this helps.
gt; gt;
gt; gt; Pete
gt; gt;
gt; gt;
You could try:
=HYPERLINK(quot;#'Sheet 10'!A10quot;,quot;jumpquot;)
But I'd use this (from David McRitchie):
=HYPERLINK(quot;#quot;amp;CELL(quot;addressquot;,C5),C5) =HYPERLINK(quot;#quot;amp;CELL(quot;addressquot;,sheetone!C5),sheeton e!C5) =HYPERLINK(quot;#quot;amp;CELL(quot;addressquot;,'sheet two'!C5),'sheet two'!C5)
===
or for your sample:
=HYPERLINK(quot;#quot;amp;CELL(quot;addressquot;,'Sheet 10'!A10),quot;Jumpquot;)
You'll find that this formula won't break if you change the name of Sheet 10.
And if you insert/delete rows/columns on Sheet 10, then the formula will adjust
so that the link will take you to the cell that was originally A10.joeydiaz wrote:
gt;
gt; I tried using the suggestion: =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt; But it doesn't seem to work.
gt; All I want to do is to jump to a certain cell in another sheet (same
gt; workbook) when I click on a cell which contains the formula. Somehow, I'm not
gt; succeeding using hyperlink. what seems to be my problem?
gt;
gt; quot;mongkolkornquot; wrote:
gt;
gt; gt; Thank for you answer.
gt; gt; but I want to use press key F5 and jump to other sheet ...,active cell in
gt; gt; other sheet .....
gt; gt;
gt; gt; --
gt; gt; mai
gt; gt;
gt; gt;
gt; gt; quot;Petequot; เขียน:
gt; gt;
gt; gt; gt; You could put this formula in cell A1 of Sheet 1:
gt; gt; gt;
gt; gt; gt; =HYPERLINK(#'Sheet 10'!A10,quot;jumpquot;)
gt; gt; gt;
gt; gt; gt; Note that there is an apostrophe after the # and before the !. This
gt; gt; gt; will put the word quot;jumpquot; in cell A1 and when you click this it will
gt; gt; gt; take you to cell A10 of Sheet 10.
gt; gt; gt;
gt; gt; gt; Hope this helps.
gt; gt; gt;
gt; gt; gt; Pete
gt; gt; gt;
gt; gt; gt;
--
Dave Peterson
- May 16 Wed 2007 20:37
jump to active cell in other sheet .
close
全站熱搜
留言列表
發表留言