ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   moving around cell (https://www.excelbanter.com/excel-discussion-misc-queries/12886-moving-around-cell.html)

Bre-x

moving around cell
 
hi,
using code how do you move up down, left, right?

activecell.moveleft 1

or something like that

Thnks



Peo Sjoblom

Look at offset


--


Regards,

Peo Sjoblom


"Bre-x" wrote in message
...
hi,
using code how do you move up down, left, right?

activecell.moveleft 1

or something like that

Thnks





Earl Kiosterud

Bre-x

ActiveCell.Offset(0,-1).Select will move left one cell

ActiveCell.Offset(2, 1).Select move down two, right one
ActiveCell.Cells(3, 2).Select move down two, right one
ActiveCell.Range("B3").Select move down two, right one
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Bre-x" wrote in message
...
hi,
using code how do you move up down, left, right?

activecell.moveleft 1

or something like that

Thnks






All times are GMT +1. The time now is 06:15 PM.

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