Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
How do I copy a column that is called "Product Line" into Column A? The Product Line column is in a different column on different reports so I cannot reference it by column letter and hope to reference it by column heading/name. Thank you! Luce |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To copy an entire column try something like, you can reference it by column
letter if you fully reference it with the name of the sheet The following copies the entire column D on sheet1 to column A on sheet2 Sheets("Sheet1").Columns("D:D").Copy Destination:=Sheets("Sheet2").Range("A1") -- Regards, Nigel "Lucky Lucy" wrote in message ... Hi, How do I copy a column that is called "Product Line" into Column A? The Product Line column is in a different column on different reports so I cannot reference it by column letter and hope to reference it by column heading/name. Thank you! Luce |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you Nigel. The problem I have is that I cannot reference by column
letter, as that column letter will vary on different worksheets. What I would like to do is reference by column heading/title, so I can use the same macro on different worksheets. Thanks, Luce "Nigel" wrote: To copy an entire column try something like, you can reference it by column letter if you fully reference it with the name of the sheet The following copies the entire column D on sheet1 to column A on sheet2 Sheets("Sheet1").Columns("D:D").Copy Destination:=Sheets("Sheet2").Range("A1") -- Regards, Nigel "Lucky Lucy" wrote in message ... Hi, How do I copy a column that is called "Product Line" into Column A? The Product Line column is in a different column on different reports so I cannot reference it by column letter and hope to reference it by column heading/name. Thank you! Luce |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Search for a column based on the column header and then past data from it to another column in another workbook | Excel Programming | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Programming | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
How can i have all alike product codes in column A be matched with like cities in column B and then add the totals that are in column C | Excel Programming |