Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Copying Columns

R,

Worksheet("Sheet Name").Range("A:A").Copy Worksheets("Other Name").Range("A:A")
Worksheet("Sheet Name").Range("B:B").Copy Worksheets("Other Name").Range("D:D")
Worksheet("Sheet Name").Range("C:C").Copy Worksheets("Other Name").Range("G:G")

HTH,
Bernie
MS Excel MVP


"RSteph" wrote in message
...
Is there a quick and dirty way to copy an entire column from one worksheet,
and paste it into another (with a macro). For example I have a worksheet with
three columns. I'd like to paste column A of that worksheet into column A of
another, then column B into column D, and column C into column G.

As of now I'm using a for loop to run through the first worksheet, and then
doing a simple Cell("").Value = worksheet.Cell("").Value type of deal; but I
was curious if there was a simpler way to handle this: Some sort of
'worksheet(1).Columns("B").CopyTo(Worksheet(2).Col umns("D")' - Something
simple like that??

Is there and easier/more effecient way to handle this than to use a For Loop?



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
copying columns oldjay Excel Discussion (Misc queries) 3 December 3rd 09 11:56 PM
Copying across columns Gemz Excel Worksheet Functions 2 February 27th 08 03:06 PM
Copying to columns [email protected] Excel Discussion (Misc queries) 4 October 17th 06 06:19 PM
Copying several columns achidsey Excel Programming 2 December 23rd 05 05:16 PM
copying columns Deb B. Excel Discussion (Misc queries) 2 November 28th 04 07:55 PM


All times are GMT +1. The time now is 03:55 PM.

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"