Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Extend Selection Question

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extend Selection Question

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


"Reitanos" wrote in message
...
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Extend Selection Question

You must have understood enough, because it worked. Thanks

On Aug 25, 1:02*pm, "Rick Rothstein \(MVP - VB\)"
wrote:
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA range selection question Pete[_7_] Excel Worksheet Functions 24 May 10th 11 07:29 PM
Filter and selection question tjcmills Excel Discussion (Misc queries) 1 April 2nd 09 11:59 AM
Selection Question bodhisatvaofboogie Excel Programming 2 November 3rd 06 02:01 PM
Loop and extend selection [email protected] Excel Programming 4 October 3rd 06 08:05 PM
extend selection indu aronson Excel Programming 1 December 4th 03 09:31 PM


All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"