PC Review


Reply
Thread Tools Rate Thread

Copying Data OR Selecting Columns In Pieces

 
 
Faraz A. Qureshi
Guest
Posts: n/a
 
      20th Aug 2009
Sure would oblige if any of u experts would kindly offer me with a sample
code so as to clarify the concept of activating/selecting specific number of
columns within a range.

For instance, a code which would select the columns within a specified range
in two, as follows:

1. With range already selected (e.g. $A:$H);
2. First select columns $A:$B; Then
3. First select columns $C:$D; Then
4. First select columns $E:$F; Then
5. First select columns $G:$H; Then

The end!

--
Best Regards,

Faraz
 
Reply With Quote
 
 
 
 
Faraz A. Qureshi
Guest
Posts: n/a
 
      20th Aug 2009
A sort of OFFSET?
--
Best Regards,

Faraz


"Faraz A. Qureshi" wrote:

> Sure would oblige if any of u experts would kindly offer me with a sample
> code so as to clarify the concept of activating/selecting specific number of
> columns within a range.
>
> For instance, a code which would select the columns within a specified range
> in two, as follows:
>
> 1. With range already selected (e.g. $A:$H);
> 2. First select columns $A:$B; Then
> 3. First select columns $C:$D; Then
> 4. First select columns $E:$F; Then
> 5. First select columns $G:$H; Then
>
> The end!
>
> --
> Best Regards,
>
> Faraz

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      20th Aug 2009
Do you mean the below.. Try running this code using F8 (Step into) and see
what happens on each line OR try line by line from immediate window...

Range("A:H").select
selection.resize(,2).select
selection.resize(,4).select
selection.resize(,6).select
selection.resize(,8).select

If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

> A sort of OFFSET?
> --
> Best Regards,
>
> Faraz
>
>
> "Faraz A. Qureshi" wrote:
>
> > Sure would oblige if any of u experts would kindly offer me with a sample
> > code so as to clarify the concept of activating/selecting specific number of
> > columns within a range.
> >
> > For instance, a code which would select the columns within a specified range
> > in two, as follows:
> >
> > 1. With range already selected (e.g. $A:$H);
> > 2. First select columns $A:$B; Then
> > 3. First select columns $C:$D; Then
> > 4. First select columns $E:$F; Then
> > 5. First select columns $G:$H; Then
> >
> > The end!
> >
> > --
> > Best Regards,
> >
> > Faraz

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting 2 different pieces of data in 2 different columns Cindyt Microsoft Excel Worksheet Functions 5 29th Sep 2009 11:43 PM
Report with Monthly rows, Yearly columns & 3 pieces of data per mo magicdds Microsoft Access Reports 2 1st Jul 2008 06:56 AM
moving columns and selecting for copying Neddy Microsoft Excel Programming 5 16th Jun 2005 11:02 PM
selecting or copying columns conditionally busyman5_au Microsoft Excel New Users 2 23rd Feb 2004 03:21 AM
Selecting and copying columns based on a cell value busyman5_au Microsoft Excel Misc 0 17th Feb 2004 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:52 AM.