Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default Automatically move cursor when cell value changes

It didn't work the way I wanted because I wasn't explicit enough, however,
with a value change it did mostly what I wanted. Thanks!!

To be more explicit, Here is a dumbed down version of my worksheet and what
I would like to do.

A B C D E FG H I JK L M NO
1
2

Enter data into e1 and it returns to d2, and so on. Originally columns J&k
are showing, but I will hide them for purposes of entering data, when I am
finished with them columns, I will unhide them. So next when I enter the
data into M1, the cursor will return to H2 and then from M2 to H3 and so on.

I have other versions of this work sheet, but they are basically the same,
there will only be some with more groups of 2 columns.

Could you explain a little how target.column,target.offset works.

Thanks a lot for your help, that little bit of code may end up saving me a
lot of time entering data and not having to press keys.





"Gary''''s Student" wrote:

Since you only want to jump back and down after entries in columns
B,F,J,...etc:

Private Sub Worksheet_Change(ByVal Target As Range)
If (Target.Column - 2) Mod 4 = 0 Then
Target.Offset(1, -1).Select
End If
End Sub

This is worksheet code.

--
Gary's Student
gsnu200702


"scotty" wrote:

Using Excel 2003

I have 5 groups of 2 columns with 50 rows for each group of columns. I am
using an electronic device to input values into the cells. I have excel set
to move the cursor right after entering data.

What I want to do is when I am in the second column in a group and I enter
the data, I want the cursor to auto move back to the 2nd row in the 1st
column in that group.

For example

A b E F I J
1
2
3

When the data is entered into b1, I want the cursor to go to A2. when I
enter the data into b2, I want the cursor to move to A3 and so on down to row
50.

I would like to do this for each group of columns, i.e AB EF IJ, etc.

I have somewhat figured out how do do this, but it would take a lot of lines
of code.

Is there anyway I can do this fairly easily?

Thanks for your help

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
VISUAL BASIC COMMAND TO MOVE CURSER DOWN ONE CELL Moving Problem! Excel Worksheet Functions 2 December 19th 06 08:00 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How to Automatically Move Cell datato adjacent cell.. cardingtr Excel Discussion (Misc queries) 1 October 17th 05 03:59 AM
Move automatically to a cell Box666 Excel Discussion (Misc queries) 2 October 15th 05 10:34 AM


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