[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VBA code to copy data from one sheet to other

Posted on 2012-09-10
3
Medium Priority
?
496 Views
Last Modified: 2012-09-19
I have two excel sheets with variable length.
Want to copy from one sheet to other, I know if I loop raw and column it can be done.
if there any way to copy entire raw at a time ...more faster way.

Thanks
0
Comment
Question by:alam747
2 Comments
 
LVL 24

Accepted Solution

by:
Steve earned 2000 total points
ID: 38387713
to copy an entire row (example will copy row1 sheet1 to row1 sheet2)...

dim wsF as worksheet: set wsF = thisworkbook.sheets("Sheet1")
dim wsT as worksheet: set wsT = thisworkbook.sheets("Sheet2")

wsF.rows(1).copy wsT.rows(1)

Open in new window

0
 

Author Closing Comment

by:alam747
ID: 38416118
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Lost Word File? Eagerly, need it back? Read ahead; this File Recovery guide is for you.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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.

872 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