LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default using the enter to skip colums

Hellom from Steved

Later you say you want to enter something in Column E and then go to Col I.
Here you're skipping 3 columns.

Interesting issue I've started, In the above Col F and and Col H are hidden.
In my thinking If I use the enter key twice as Col f and Col H are hidden it
goes to Col I that's the rational behind my thinking. I thought a code would
do it for me as sometimes I've more than a hundred rows to do.

So in finishing the code will not ignore hidden columns.

I thankyou for your timeout on my issue.


"Barb Reinhardt" wrote:

How do you determine which columns to skip. It's not clear to me. Do you
want to skip the hidden columns?

Later you say you want to enter something in Column E and then go to Col I.
Here you're skipping 3 columns.

Later you say you could have Col A through E and you want to cursor to skip
col C and go to D. It seems random to me. How do we know which columns to
skip?

Barb Reinhardt




"Steved" wrote:

Hello from Steved

I have a spreadsheet that has hidden Columns

I have 4 Columns C: E: I: K: That I enter Data in on the same row.

Right is the Direction when I hit the enter key.

When it reaches Col K: and I enter data and use the enter key it drops down
a row to start at Col C: as per

I also have Column G: showing

The objective is Type data in Col C: use enter key to take me to the next
Cell in this
case Col E: "now when I push the enter key after I typed in data I want it
to skip a Column and goto Col I:" as instructed Range("C" & n).Select.

I could for example have Col A:, Col B:, Col C:, Col D:, and Col E:
Using the above I want the cursor to skip Col C: and goto Col D:

Using the below code you kindly supplied where would I put it please.

Dim Right as Boolean

Right = TRUE

I Thankyou.








"Barb Reinhardt" wrote:

Two questions:

What exactly are you trying to accomplish? It appears that cells are
sequentially selected and nothing else is done.

Do you define "down" somewhere?

Dim Down as Boolean

Down = TRUE

??
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Steved" wrote:

Hello from Steved

Please how can I add a piece of code to below that will allow me to do 2
data entries skip a column then carry on inputing until I reach the last
Colum which is K:\

I thankyou for looking at my issue.

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("K:K")) Is Nothing Then
Exit Sub
End If
If down Then
Target.Offset(1, 0).Select
Else
n = Target.Row + 1
Range("C" & n).Select
End If
down = Not down
End Sub



 
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
want to automatically skip certain cells when you hit enter Deedarling1960 Excel Worksheet Functions 2 July 11th 08 11:53 PM
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
skip checkbox to next tab with "enter" Jared New Users to Excel 0 October 24th 06 04:57 AM
Is there a way to skip over fields when I press the ENTER key? Kay Excel Discussion (Misc queries) 3 June 20th 06 07:18 PM
Is it possible to set the enter and arrow keys to skip locked cel Barron Excel Discussion (Misc queries) 2 March 18th 06 08:03 AM


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