End(x1Left) to column a

  • Thread starter Thread starter ORLANDO V
  • Start date Start date
O

ORLANDO V

Anyone know how I can offset from the active cell to the leftmost column a.

I have been trying Selection.End(x1Left).Select but that doesn't work since
I don't know how many columns to the left column a is each time. Sometimes
it may be 65 columns to the left, othertimes just a few columns to the left.

What command would you use?
Thank you.
 
i would just do something like this
myRow = ActiveCell.Row
Cells(myRow, 1).Select
 
Hi

Selection.End(xlToLeft).Select will only work if all cells between column A
and the selected cell contain a value.

Use this instead

CurrentRow = ActiveCell.Row
Cells(CurrentRow, 1).Select

Regards,
Per
 
Thank you. Worked great !


Per Jessen said:
Hi

Selection.End(xlToLeft).Select will only work if all cells between column A
and the selected cell contain a value.

Use this instead

CurrentRow = ActiveCell.Row
Cells(CurrentRow, 1).Select

Regards,
Per
 

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