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.
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.
Following the same principle - that you want to select the next column after the last used column in a row, try:
This refers to row 1.Please Login or Register to view this content.
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:
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 RangePlease Login or Register to view this content.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks