Move to Active Row Column B

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want a code that will move the cursor to Column B, but not move it from the
ActiveRow.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top