?
Solved

Excel Copy and Paste from sheet

Posted on 2011-02-12
3
Medium Priority
?
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 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