+ Reply to Thread
Results 1 to 3 of 3

how can I select a cell next to a cell in a row?

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    how can I select a cell next to a cell in a row?

    the code below shows how one can select a cell below a certain range in one column.

    My question is:
    How would the equivalent code look like if I want to select the cell next to a cell in a row?

    Please Login or Register  to view this content.
    Last edited by dschmitt; 03-02-2010 at 12:21 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: how can I select a cell next to a cell in a row?

    Following the same principle - that you want to select the next column after the last used column in a row, try:
    Please Login or Register  to view this content.
    This refers to row 1.

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: how can I select a cell next to a cell in a row?

    I don't see that the question has anything to do with the example.

    If you want to select the cell adjacent (to the right) of the active cell:
    Please Login or Register  to view this content.
    If you want to select the cell adjacent (to the left) of the active cell:
    Please Login or Register  to view this content.
    Or replace ActiveCell with any known Range, such as a variable or a name Range
    Please Login or Register  to view this content.

    Or, do you really want to select the cell next to the cell "below below a certain range in column"?
    In which case you can complicate your exising code by adding offset, or change your variable to be the column not the row

+ 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