First question: Why? Selecting cells slows down code. You can probably do whatever you want another way.
But, to answer your question:
Code:
ActiveCell.Offset(-1, 1).Activate
will move the cursor one row up, one column right. Arguments are: offset(RowOffset,ColumnOffset) where postive numbers move down or right, negative numbers move up or left.
[tt]_____
[blue]-John[/blue]
[/tt][red]"If you're flammable and have legs, you are never blocking a fire exit."[/red] -Mitch Hedberg
Help us help you. Please read FAQ181-2886 before posting.
I've got a database that I'm cleaning up and the addresses need to be moved. The format is:
address
city, st zip
and I want to move it all on one line and preferable parse out the city-state-zip in seperate cells. This macro will allow me to click, ctrl-m, click, ctrl-m, etc. Slow but quicker than doing it manually. All the cells are in the same place respectfully so if there's a better/quicker way I'm all ears.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.