ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Move to Active Row Column B (https://www.excelbanter.com/excel-programming/317434-move-active-row-column-b.html)

scrabtree23[_3_]

Move to Active Row Column B
 
I want a code that will move the cursor to Column B, but not move it from the
ActiveRow.

JulieD

Move to Active Row Column B
 
Hi

one method is to use the offset function...
e.g.
activecell.offset(0,1).select
moves the cursor one column to the right
activecell.offset(0,-1).select
moves the cursor one column to the left

however, generally you don't need to "select" a cell to work with it
e.g.
activecell.offset(0,5).value = "cat"
places the word "cat" in the 5th column to the right of the current cell.

Cheers
JulieD

"scrabtree23" wrote in message
...
I want a code that will move the cursor to Column B, but not move it from
the
ActiveRow.




Frank Kabel

Move to Active Row Column B
 
Hi
cells(activecell.row,2).select

"scrabtree23" wrote:

I want a code that will move the cursor to Column B, but not move it from the
ActiveRow.



All times are GMT +1. The time now is 07:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com