Counting selected cells

  • Thread starter Thread starter Wendy
  • Start date Start date
W

Wendy

Hi

How do I count how many cells the command Range(Selection,
Selection.End(xlToRight)).Select has selected?

Thanks

Wendy
 
Try

Msgbox Range(Selection, Selection.End(xlToRight)).Cells.Count
 
After running that line it would just be

Selection.Cells.Count

Tim
 

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