Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Copying Column in R1C convention

I know I want to copy column N on a specific worksheet name where N is
variable and is a number (column 2, 5, 8, whatever). How do I write the
code to copy that column?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Copying Column in R1C convention

assuming you want to copy the entire column from the activeworksheet

n = 3
Columns(n).Copy

or

n = 3
Sheets("Sheet2").Columns(n).Copy

if it is not the active sheet

or you could add workbooks("bookname") if it is in another workbook

hope this helps

David
"Barb Reinhardt" wrote:

I know I want to copy column N on a specific worksheet name where N is
variable and is a number (column 2, 5, 8, whatever). How do I write the
code to copy that column?

Thanks,

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
Variable Naming Convention Ben Excel Programming 0 April 8th 06 08:48 AM
Anyway to set numerical column name as Exel convention? Frank Cao Excel Worksheet Functions 4 December 15th 05 08:02 PM
Formatting convention for code Jimbola Excel Programming 2 January 22nd 05 01:55 AM
Naming convention for a variable "Book1" while copying sheets JER Excel Programming 6 April 3rd 04 08:54 PM
Error 49: Bad .dll Calling Convention Jarrett Sadowsky Excel Programming 1 January 20th 04 07:52 PM


All times are GMT +1. The time now is 11:36 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"