PC Review


Reply
Thread Tools Rate Thread

Copy/Paste Column Issue Using a Range

 
 
=?Utf-8?B?QUxBVEw=?=
Guest
Posts: n/a
 
      11th Sep 2007
I am trying to copy several columns to a new worksheet. I have the following
code that does not copy the entire column correctly. It seems to copy only
cells C1 to C4. There are empty spaces in this column.

I would like for this to copy beginning at Org_Addr (this can be a variable
location) and all the way down to the last row of data in this column.

I appreciate the help!

ALATL

With SourceSheet
.Range(.Range(Org_Addr), .Range(Org_Addr).End(xlDown)).Copy
End With
DestSheet.[C65536].End(xlUp)(1).PasteSpecial Paste:=xlValues
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      11th Sep 2007
One way:

With SourceSheet
With .Range(.Range(Org_Addr), .Cells(.Rows.Count, _
.Range(Org_Addr).Column).End(xlUp))
DestSheet.Cells(.Rows.Count, 3).End(xlUp).Resize( _
.Rows.Count, .Columns.Count).Value = .Value
End With
End With





In article <F2CF942F-DFF4-4487-BF3B-(E-Mail Removed)>,
ALATL <(E-Mail Removed)> wrote:

> I am trying to copy several columns to a new worksheet. I have the following
> code that does not copy the entire column correctly. It seems to copy only
> cells C1 to C4. There are empty spaces in this column.
>
> I would like for this to copy beginning at Org_Addr (this can be a variable
> location) and all the way down to the last row of data in this column.
>
> I appreciate the help!
>
> ALATL
>
> With SourceSheet
> .Range(.Range(Org_Addr), .Range(Org_Addr).End(xlDown)).Copy
> End With
> DestSheet.[C65536].End(xlUp)(1).PasteSpecial Paste:=xlValues

 
Reply With Quote
 
=?Utf-8?B?QUxBVEw=?=
Guest
Posts: n/a
 
      11th Sep 2007
It worked! However, I have no idea why. Can you do me a favor & put this into
English for me?

I appreciate your answer!

Best,
ALATL

"JE McGimpsey" wrote:

> One way:
>
> With SourceSheet
> With .Range(.Range(Org_Addr), .Cells(.Rows.Count, _
> .Range(Org_Addr).Column).End(xlUp))
> DestSheet.Cells(.Rows.Count, 3).End(xlUp).Resize( _
> .Rows.Count, .Columns.Count).Value = .Value
> End With
> End With
>
>
>
>
>
> In article <F2CF942F-DFF4-4487-BF3B-(E-Mail Removed)>,
> ALATL <(E-Mail Removed)> wrote:
>
> > I am trying to copy several columns to a new worksheet. I have the following
> > code that does not copy the entire column correctly. It seems to copy only
> > cells C1 to C4. There are empty spaces in this column.
> >
> > I would like for this to copy beginning at Org_Addr (this can be a variable
> > location) and all the way down to the last row of data in this column.
> >
> > I appreciate the help!
> >
> > ALATL
> >
> > With SourceSheet
> > .Range(.Range(Org_Addr), .Range(Org_Addr).End(xlDown)).Copy
> > End With
> > DestSheet.[C65536].End(xlUp)(1).PasteSpecial Paste:=xlValues

>

 
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
A macro to copy & paste many rows (a range) to the next column .. genehunter Microsoft Excel New Users 10 21st Apr 2009 07:36 AM
Column range to search from a source workbook and then copy/paste DanS Microsoft Excel Programming 0 10th Feb 2009 11:29 PM
copy range and paste into every 3rd cell of new range thomsonpa Microsoft Excel New Users 4 3rd Dec 2007 01:47 PM
Copy/Paste Range mastermind Microsoft Excel Programming 2 22nd Dec 2006 07:04 PM
Save column J only using copy/paste & temporary copy mikeburg Microsoft Excel Programming 2 7th Jun 2006 05:37 PM


Features
 

Advertising
 

Newsgroups
 


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