xlToRight Command

  • Thread starter Thread starter mikeymay
  • Start date Start date
M

mikeymay

I am wanting to select a range of cells in a row that has
a couple of empty cells at various places within the
range. I have used -

Range(Activecell, Activecell.End(xlToRight)).Select

to select the cells before the first empty cell in the
range, but how do I select the whole range?

Can't take out the columns with empty cells as sometimes
there will be data in these cells and other times not.

Many thanks in advance.......
 
Try this

Range(ActiveCell, Cells(ActiveCell.row, Columns.Count).End(xlToLeft)).Select
 

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