Extend Selection Question

R

Reitanos

I know that I can extend the selection by address using
Activecell.Offset.Range("A1:B10").Select
but if I'm using a variable for the width is there a way to reference
that without having to calculate the column address (ie if I need to
select 28 columns starting in B)?

Thanks
 
R

Rick Rothstein \(MVP - VB\)

Your question is not entirely clear. Are you extending an existing
selection? If so, you can do something like this...

Selection.Resize(, NewWidth).Select

This will work no matter what the size of the selection is. If that is not
your question, I'm still sure Resize is the answer... if you would clarify
what your starting situation is, we can show you how to apply Resize to it.

Rick
 

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

Top