Solved

Excel Copy and Paste from sheet

Posted on 2011-02-12
3
267 Views
Last Modified: 2012-05-11
Hello Experts,

Hope you're all well. Before I ask a question, I just want to say this is the best subscription I've ever paid for.

Anyway, can someone please help me compile a macro/program that will allow me to copy and paste from one sheet to another.

Let me explain, in the attached I have two sheets. In sheet one, column B, I would like to copy and paste the information from sheet 2 column A in one keystroke into sheet one column B.

Now, I know you're probably thinking why don't I just copy and paste it myself! However, if you understood how many times I need to do this you would understand why I'm asking for your help with this.

As always, thank you.

Carlton
copyandpaste.xlsm
0
Comment
Question by:cpatte7372
3 Comments
 
LVL 3

Expert Comment

by:andreibutu
ID: 34878636
Hello,

You could simply insert a formula in colum b sheet 1, like this:
in cell 2:
='sheet 2'!A2

and this will automatically put your data from sheet 2 column A in sheet 1 column B.
And you can drag the function for the entire column.
Hope this helps you
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 500 total points
ID: 34878643
Try this

Sub Sample()
    Dim lastrow As Long
    
    lastrow = Sheets("Sheet 2").Range("A" & Rows.Count).End(xlUp).Row
    
    Sheets("sheet 2").Range("A2:A" & lastrow).Copy _
    Sheets("sheet1").Range("B2")
End Sub

Open in new window


Sid
0
 

Author Closing Comment

by:cpatte7372
ID: 34878719
Brilliant mate.....
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn date into age 17 33
combine fist two words in a cell 2 25
Set WorkSheet  not Working 9 44
Transposing this formula ... 5 17
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question