PC Review


Reply
Thread Tools Rate Thread

Copy variable column data.

 
 
JonN89@gmail.com
Guest
Posts: n/a
 
      14th Jun 2007
I'm attempting to figure out how to copy a variable length of data
from one worksheet to another. They're both in the same work book.
One sheet is the Order sheet and the other is a credit card tracking
sheet. The columns don't match up and are orientated for ease of
reading for the particular information we need to know from each one.

So essentially i have no problem combining multiple macros, one for
each column... i just can't figure it out =)

Excel 2003, trying to use Macros...


Jonathan Nies

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      14th Jun 2007
hi
here is a simple macro that copies 1 column of data (regardless of data
length) from sheet 1 to sheet 2. put it in a standard module. it's a tad
wordy but i did so to show the logical steps the macro takes.
Sub copystuff()
Dim rng1
Dim rng2
Sheets("Sheet1").Activate
Set rng1 = Range("A1")
Set rng2 = Range("A65000").End(xlUp)
Range(rng1, rng2).Select
Selection.Copy
Sheets("sheet2").Activate
Range("A1").Select
ActiveSheet.Paste
End Sub

you may have to modify to fit your data. you can add on the the end to copy
more columns.
post back if you have problems/questions.

Regards
FSt1

"(E-Mail Removed)" wrote:

> I'm attempting to figure out how to copy a variable length of data
> from one worksheet to another. They're both in the same work book.
> One sheet is the Order sheet and the other is a credit card tracking
> sheet. The columns don't match up and are orientated for ease of
> reading for the particular information we need to know from each one.
>
> So essentially i have no problem combining multiple macros, one for
> each column... i just can't figure it out =)
>
> Excel 2003, trying to use Macros...
>
>
> Jonathan Nies
>
>

 
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
Copy variable sized range to single column... =?Utf-8?B?SmVk?= Microsoft Excel Programming 1 22nd Feb 2007 06:31 AM
How do I copy a data from a single column into an array and back into another column? wgoulet@gmail.com Microsoft Excel Programming 1 10th Feb 2007 05:03 AM
Pivot Table - Copy All Data from a Specific Variable Data Field troy.litwiler@gmail.com Microsoft Excel Discussion 1 8th Feb 2007 04:36 AM
copy a range with known start column to variable end column =?Utf-8?B?TWF0aWxkYQ==?= Microsoft Excel Programming 2 2nd Aug 2006 04:55 PM
COPY last cell of a column..variable number of cells(macro) Microsoft Excel Charting 2 17th Mar 2004 05:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 PM.