+ Reply to Thread
Results 1 to 8 of 8

Determining where cursor goes after I press Enter

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    94

    Determining where cursor goes after I press Enter

    I have set the default in Excel to move across to the next cell after I press Enter. This is fine for most workbooks but I have a particular workbook in which it would be preferable (save keystrokes) for the cursor to move down one cell. Is it possible to have one action as the default but another for a particular workbook?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Determining where cursor goes after I press Enter

    You can insert this in the workbook open event:
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-21-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Determining where cursor goes after I press Enter

    Although I have been using Excel for 20 years and Excel 2007 for 6, I have no idea how to access the workbook open event. What do I do?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Determining where cursor goes after I press Enter

    Hi Cullism,

    Use this event code in the "ThisWorkbook" module:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Save your Workbook As Macro-Enabled

    Click on "ThisWorkbook"

    Type "Option Explicit" then paste the code under it

    And, you should be ready to go

  5. #5
    Registered User
    Join Date
    05-21-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Determining where cursor goes after I press Enter

    Thanks a lot for your help. It wasn't easy as your routine didn't work straight away. I entered the routine in each month, saved it, but then found that it didn't make any difference. After I had applied the routine to all 12 months without apparent success I re-opened each month and found that it was, in fct, working.

    Many thanks.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Determining where cursor goes after I press Enter

    Did you put it in the "ThisWorkbook" module? If you did then it should have worked for all the sheets in that book

  7. #7
    Registered User
    Join Date
    05-21-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Determining where cursor goes after I press Enter

    My last reply wasn't very clear. I have 12 separate workbooks, each with 2 worksheets. Your advice worked on all 12 (after a bit of hesitation).

    Thanks again.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Determining where cursor goes after I press Enter

    Communication is so "iffy" sometimes - glad it's working! And - you're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] To move cursor to the next row automatically when we enter press
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2013, 09:13 AM
  2. [SOLVED] keep having to press enter
    By louise2613 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2012, 09:22 AM
  3. [SOLVED] When I Press the Enter Key Nothing happens.
    By bigev in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 11:10 AM
  4. Replies: 2
    Last Post: 09-11-2005, 07:05 AM
  5. move cursor to 4th column with one press of tab key?
    By Naveed Ahmad Purewal in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-14-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1