Solved

Excel Copy and Paste from sheet

Posted on 2011-02-12
3
264 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
Comment Utility
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
Comment Utility
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
Comment Utility
Brilliant mate.....
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now