+ Reply to Thread
Results 1 to 2 of 2

Move to new active cell

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Move to new active cell

    Good Morning

    I need to select the next empty cell in a column.

    The instruction below goes to the last nonblank cell in the column. I now need it to move to the next cell so that I can then work with that cell.

    Selection.End(xlDown).Select

    What method can be used to move the cursor in a direction by a variable amount of cells?

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

    Re: Move to new active cell

    Hi kemit and welcome to the forum,

    I like to use code like:

    Please Login or Register  to view this content.
    Rows.Count is the bottom row of a sheet (it differs between older and newer Excel)
    Search the net for xlUp, xlDown, xlToRight, xlToLeft to tell what direction to move.

    The "End(xlUp)" command is like doing a Ctrl Up Arrow.

    see http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] cannot use 'tab' to move active cell when protected
    By Soemd in forum Excel General
    Replies: 1
    Last Post: 07-29-2013, 01:07 PM
  2. SpinButton to move the active cell
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2012, 03:37 PM
  3. move active cell
    By jcavigli in forum Excel General
    Replies: 2
    Last Post: 09-04-2008, 10:37 AM
  4. [SOLVED] accept input and move active cell?
    By JR Hester in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2006, 11:50 AM
  5. [SOLVED] need to Copy or Move to active cell from specified range
    By kaream in forum Excel General
    Replies: 2
    Last Post: 12-14-2005, 04:15 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