Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Move active cell to same location on each worksheet

I have files with loads of worksheets (about 100 each). When I enter data, it
is different for each sheet but I want to be in the same location on each
sheet. I start on my first sheet, locate the place I want to enter data and
enter the data into the cell. Now comes the problem - when I move to sheet 2,
I am in the active cell where I was last time I was in this sheet, not in the
same location as I have just left on sheet 1. I want to move from sheet to
sheet but stay in the same cell - can this be done? It was like this when I
used Lotus 123 but I can't seem to do it in Excel. Any help gratefully
received! BeanoKid
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Move active cell to same location on each worksheet

You need to use a macro to do this. Right click the XL icon next to the word
file in the upper left hand corner of the screen and select View Code. Paste
the following...

Private CURRENT_ADDRESS As String

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.ScreenUpdating = False
Range(CURRENT_ADDRESS).Select
Application.ScreenUpdating = True
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
CURRENT_ADDRESS = ActiveCell.Address
End Sub
--
HTH...

Jim Thomlinson


"BeanoKid" wrote:

I have files with loads of worksheets (about 100 each). When I enter data, it
is different for each sheet but I want to be in the same location on each
sheet. I start on my first sheet, locate the place I want to enter data and
enter the data into the cell. Now comes the problem - when I move to sheet 2,
I am in the active cell where I was last time I was in this sheet, not in the
same location as I have just left on sheet 1. I want to move from sheet to
sheet but stay in the same cell - can this be done? It was like this when I
used Lotus 123 but I can't seem to do it in Excel. Any help gratefully
received! BeanoKid

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Move active cell to same location on each worksheet

Thanks - that seems to have done the trick - you're a star!

"Jim Thomlinson" wrote:

You need to use a macro to do this. Right click the XL icon next to the word
file in the upper left hand corner of the screen and select View Code. Paste
the following...

Private CURRENT_ADDRESS As String

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.ScreenUpdating = False
Range(CURRENT_ADDRESS).Select
Application.ScreenUpdating = True
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
CURRENT_ADDRESS = ActiveCell.Address
End Sub
--
HTH...

Jim Thomlinson


"BeanoKid" wrote:

I have files with loads of worksheets (about 100 each). When I enter data, it
is different for each sheet but I want to be in the same location on each
sheet. I start on my first sheet, locate the place I want to enter data and
enter the data into the cell. Now comes the problem - when I move to sheet 2,
I am in the active cell where I was last time I was in this sheet, not in the
same location as I have just left on sheet 1. I want to move from sheet to
sheet but stay in the same cell - can this be done? It was like this when I
used Lotus 123 but I can't seem to do it in Excel. Any help gratefully
received! BeanoKid

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 180
Default Move active cell to same location on each worksheet

You can also try selecting all worksheets and then your cell. Unselect all
worksheets and use your cell. Go to the next sheet, the cell will be
selected.

Hope it helps!


"BeanoKid" wrote:

I have files with loads of worksheets (about 100 each). When I enter data, it
is different for each sheet but I want to be in the same location on each
sheet. I start on my first sheet, locate the place I want to enter data and
enter the data into the cell. Now comes the problem - when I move to sheet 2,
I am in the active cell where I was last time I was in this sheet, not in the
same location as I have just left on sheet 1. I want to move from sheet to
sheet but stay in the same cell - can this be done? It was like this when I
used Lotus 123 but I can't seem to do it in Excel. Any help gratefully
received! BeanoKid

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
On Opening Excel WB the Active cell location never changes den4673 Excel Discussion (Misc queries) 1 March 4th 08 04:51 PM
Excel 2002 : How to move to the last line of the active worksheet Mr. Low Excel Discussion (Misc queries) 9 December 15th 06 11:37 PM
macro- move down to empty cell & active worksheet EducatingMom Excel Worksheet Functions 3 August 4th 06 11:02 PM
need to Copy or Move to active cell from specified range kaream Excel Discussion (Misc queries) 2 December 14th 05 08:12 AM
How to move location of chart within a worksheet? [email protected] Excel Discussion (Misc queries) 1 May 17th 05 11:38 PM


All times are GMT +1. The time now is 11:23 PM.

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

About Us

"It's about Microsoft Excel"