+ Reply to Thread
Results 1 to 6 of 6

Automatically Making cell Active

  1. #1
    Registered User
    Join Date
    09-03-2008
    Location
    California
    Posts
    35

    Automatically Making cell Active

    I have 5 columns namely Col A, Col B, Col C, Col D, and Col E and 50 rows in my sheets.
    I make measurements for each column for over each row and then move to the new row and so on.

    I am writing a small VBA script such that every time I enter a data in Col E I automatically move my cursor 1 row down and back to Col A.

    However everytime the cursor moves two rows down.

    Can any tell me what I am doing wrong?

    My line of code is:

    Please Login or Register  to view this content.
    Last edited by supernova5271; 10-29-2010 at 05:31 PM.

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Automatically Making cell Active

    I suspect you have Excel set to automatically move one cell down after you press ENTER.
    Either turn that feature off...or:
    Try this code:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,876

    Re: Automatically Making cell Active

    Hi Supernova, Try this code behind the sheet.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,218

    Re: Automatically Making cell Active

    You might need this in the Sheet Module for the sheet you want to control.
    Please Login or Register  to view this content.

    Right-click on the Sheet tab and select View code.

    Paste all of the above in the resultant VBA pane.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    09-03-2008
    Location
    California
    Posts
    35

    Re: Automatically Making cell Active

    Thanks guys..
    All your comments really helped... thanks for posting your replies.
    Last edited by supernova5271; 10-29-2010 at 05:31 PM.

  6. #6
    Registered User
    Join Date
    10-29-2010
    Location
    Turkey, İstanbul
    MS-Off Ver
    Excel 2003 | 2010 | 2013
    Posts
    2

    Re: Automatically Making cell Active

    Thanks you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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