![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 18
|
OK, basically I am copying and pasting 3 cells from one sheet into another, I can't copy all the cells at once due to how they are arranged on the sheet, so I was wondering if there would be an easier way of doing this than copying the cell, selecting the sheet and then pasting the cell (3 times)
[C7].Copy Sheets("Component_list").Select [A40].End(xlUp).Offset(1, 0).PasteSpecial Sheets("Add_components").Select [C9].Copy Sheets("Component_list").Select [B40].End(xlUp).Offset(1, 0).PasteSpecial Sheets("Add_components").Select [C11].Copy Sheets("Component_list").Select [C40].End(xlUp).Offset(1, 0).PasteSpecial Sheets("Add_components").Select |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Range("C7,C9,C11").Copy Range("A40").End(xlUp).Offset(1, 0).PasteSpecial _ Paste:=xlAll, Operation:=xlNone, SkipBlanks:=False _ , Transpose:=True Application.CutCopyMode = False
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 18
|
Thanks, that was just what I wanted
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|