Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2014, 01:40 PM
mars1886 mars1886 is offline How do you copy a row from one worksheet to another? Windows 7 32bit How do you copy a row from one worksheet to another? Office 2010 32bit
Novice
How do you copy a row from one worksheet to another?
 
Join Date: Jan 2014
Posts: 8
mars1886 is on a distinguished road
Default How do you copy a row from one worksheet to another?

The only catch is that the row will change each time. For example, once I find the row I need, I will copy it, then paste it to the other worksheet. Then, I will go back to the first sheet (where the data was copied from) and go to the next row and copy that data, then repeat the process until a certain cell is blank. All I need to know is how to copy specific rows that will increment (by one). PLEASE USE THE SIMPLEST ANSWER POSSIBLE. My skills in VBA are basically below beginner. I was just told to create a macro in excel, and this is a very important part of it. I have never used VBA before, nor do I intend to as soon as this is done, so I just need a very very very simple answer please



Thank you!
Reply With Quote
  #2  
Old 02-10-2014, 11:06 PM
macropod's Avatar
macropod macropod is offline How do you copy a row from one worksheet to another? Windows 7 32bit How do you copy a row from one worksheet to another? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If these rows are all going to the same output worksheet, in the same order they're found on the input worksheet, there is no need (or point) in processing them one at a time; simply specify the range you're interested in, then cut & paste the lot in one go. It's also far more efficient that way.
Quote:
I was just told to create a macro in excel, and this is a very important part of it. I have never used VBA before, nor do I intend to as soon as this is done.
Perhaps, then, whoever told you to do this should show you how... Besides, if it's a one-time requirement, it would be far quicker to do manually than it would take for anyone to write, test & debug the code - for which access to a workbook containing actual worksheet names & representative data is vital.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-11-2014, 05:15 AM
mars1886 mars1886 is offline How do you copy a row from one worksheet to another? Windows 7 32bit How do you copy a row from one worksheet to another? Office 2010 32bit
Novice
How do you copy a row from one worksheet to another?
 
Join Date: Jan 2014
Posts: 8
mars1886 is on a distinguished road
Default

I probably should have been more specific now that I think of it. I understand what to do and the logic behind it, I just don't know the syntax. The person who gave me the task doesn't know VBA either I believe. This copy paste thing isn't a one time deal either, the WHOLE macro is. Copying and pasting is just a part of the macro. Also, there are 7+ tabs that will be copied from and at least 1 copy/paste per tab. So if you could, could you give me the syntax by chance? To be even more clear, I need it to paste to a specific row of my choosing, and that row will increment by one after each paste, if that makes sense.
Reply With Quote
  #4  
Old 02-11-2014, 02:12 PM
macropod's Avatar
macropod macropod is offline How do you copy a row from one worksheet to another? Windows 7 32bit How do you copy a row from one worksheet to another? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by mars1886 View Post
This copy paste thing isn't a one time deal either, the WHOLE macro is.
In that case, my previous comments may still apply and, given your confessed lack of vba experience, that seems even more likely. All the same, though, without knowing the scope of the project it's impossible to say for sure.
Quote:
Also, there are 7+ tabs that will be copied from and at least 1 copy/paste per tab. So if you could, could you give me the syntax by chance? To be even more clear, I need it to paste to a specific row of my choosing, and that row will increment by one after each paste, if that makes sense.
There really isn't anything generic about the code to do this. I could post some arbitrary code copy for copying & pasting to an active cell, but I doubt that would get you much farther. You would need to provide a whole lot more detail, especially: how the code is to identify the sources to be copied in each case (e.g. you say you have 7+ tabs, so how does the code identify which tabs to copy from and where to find the data on those tabs); the order in which the copy/paste for the different sources to occur; whether the source format is to be retained; whether there are formulae in the sources that are to be retained, or just values; etc.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
copy, increment, rows



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you copy & paste cells across worksheets and preserve reference to worksheet? New Daddy Excel 2 11-27-2013 07:19 AM
How do you copy a row from one worksheet to another? Copy Worksheet and preserve formulas silverspr Excel 4 02-21-2013 07:51 AM
How do you copy a row from one worksheet to another? How to summarise different worksheet to a summary worksheet samkiewhock Excel 1 09-06-2012 03:34 AM
How do you copy a row from one worksheet to another? "Auto-populating" data-worksheet to worksheet. meggenm Excel 4 02-04-2012 02:04 AM
copy a file which does not have copy option jkind Word 0 01-17-2010 09:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft