Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Press Enter and Move Back to Column A Automatically

I would like to be able to press Enter after I complete the entry in any cell
in any column and have the Enter key take me back to Column A in the next
row. This happens sometimes and I'd like to have it happen all the time.

Excel versions 2003 and 2007.

Thanks for your assistance in this matter.
--
I Teach
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Press Enter and Move Back to Column A Automatically

Put this tiny event macro in the wroksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
i = Target.Row
Cells(i + 1, "A").Select
End Sub

Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm

--
Gary''s Student - gsnu201003


"I Teach" wrote:

I would like to be able to press Enter after I complete the entry in any cell
in any column and have the Enter key take me back to Column A in the next
row. This happens sometimes and I'd like to have it happen all the time.

Excel versions 2003 and 2007.

Thanks for your assistance in this matter.
--
I Teach

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Press Enter and Move Back to Column A Automatically

Start in A1...........Tab your way across to G1

Leave G1 by hitting ENTER key.

You are now at A2


Gord Dibben MS Excel MVP

On Fri, 14 May 2010 11:49:01 -0700, I Teach
wrote:

I would like to be able to press Enter after I complete the entry in any cell
in any column and have the Enter key take me back to Column A in the next
row. This happens sometimes and I'd like to have it happen all the time.

Excel versions 2003 and 2007.

Thanks for your assistance in this matter.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Press Enter and Move Back to Column A Automatically

Just on the off chance that there is a SelectionChange event floating
about somewhere, you should turn off events.

Application.EnableEvents = False
i = Target.Row
Cells(i + 1, "A").Select

Application.EnableEvents = True

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com


On Fri, 14 May 2010 12:02:01 -0700, Gary''s Student
wrote:

Put this tiny event macro in the wroksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
i = Target.Row
Cells(i + 1, "A").Select
End Sub

Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm

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
Selection won't move when I press enter...do you know why? lori Excel Discussion (Misc queries) 1 January 12th 09 01:21 PM
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
How do I make the cursor move down 8 cells each time i press enter Candys Kisses Excel Worksheet Functions 3 August 20th 07 11:08 PM
move cursor to 4th column with one press of tab key? Naveed Ahmad Purewal New Users to Excel 6 May 14th 05 04:22 AM
must press enter 2x to move cell focus Lynn Excel Discussion (Misc queries) 0 March 18th 05 06:05 PM


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