Search : in
By :

Copy entire row from one tab into another

Last answer on Nov 3, 2008 7:35:31 pm GMT celnow, on Sep 8, 2008 6:10:15 pm BST 
 Report this message to moderators

Hello,
I'm trying to automate a process where I copy an entire row after a certain condition in a cell is met into another worksheet/ tab. Also after the row has been copied I would like to delete the row in the first worksheet/tab. I tried to use macros but they copy my hidden cells as well. I guess I have to write a code, but need your help for this... I hope this makes sense...

Many Thanks
Christian

Configuration: Windows XP
Firefox 3.0.1

Best answers for « copy entire row from one tab into another » in :
Copy an entire partition on Vista ShowCopy an entire partition on Vista Issue Solution Issue It is possible to copy the entire partition on your hard drive with the DVD of vista. It is very useful if you want to change your hard drive in order to restore all data....
Copy/Paste problems when using Firefox ShowCopy/Paste problems when using Firefox Pushow Adware Extensions It happens that sometimes, Firefox refuse to copy/paste items. Two assumptions can be made: Pushow Adware You have been infected by an adware, named pushow**.dll...
Copy rows based on a condition ShowCopy rows based on a condition Issue Solution Note Issue How can I have excel copy the entire row of data from worksheet Employee Inventory to another worksheet called EEs if column Q contains TERM. I've tried almost everything but...
Download Tab Effect ShowTab Effect is an extension for firefox which adds effect when you change one tab to the other. Tab Effect is small, free, reliable and efficient. Tab Effect is compatible with: Linux/MacOSX/95/98/Me/2000/XP/Vista. Tab Effect requires the...
Download Ctrl Tab ShowThe Alt+Tab keys are keys very much used in various systems to swing from one window to another. Several combinations are available under Firefox for an easier and fast browsing: (Shift+) Ctrl+Tab under Firefox for swinging from one tab to...
Download 101 Clips ShowThe major problem of the clipboard of Windows, is that you cannot copy more than one thing at a given moment. 101 Clips is the solution to this problem. It is a tool allowing to place several files or several objects at at the same time in the...

1

Ivan-hoe, on Sep 9, 2008 7:35:47 am BST
  • +8

Hello Christian,
Please copy here the macros you used and afterwards we'll try to see what goes wrong in them.
Ivan

Reply to Ivan-hoe

2

JxCore, on Oct 16, 2008 2:45:09 pm BST
  • +1

Hi Ivan,

I'm trying to do something almost exactly the same as Christian above, but I wouldn't want to delete the orginal line of data I'm copying from and I haven't begun to write a macro for it yet as I'm not very good with it. I've been looking for help for this one for some time now and haven't been able to get any. Can you help please?

Thanks!

Reply to JxCore

3

 Su, on Nov 3, 2008 7:35:31 pm GMT
  • +6

Hi Ivan,

Here is my code. I am looking to search for a row in worksheet 2 corresponding to a value entered in worksheet 1. If the value matches, it will copy the rows to worksheet 1. So far I discovered that while debugging it does search right; but is unable to copy. Can you please help me?
Sub Value_Proposition_NewSearch()
'
' Value_Proposition_NewSearch Macro
'

'
Dim wksTarget As Worksheet, wksSource As Worksheet
Dim rngTarget As Range, rngSource As Range, rngID As Range
Dim iD As String
Set wksTarget = ThisWorkbook.Sheets("Menu")
Set wksSource = ThisWorkbook.Sheets("ValuePropositionData")
Set rngID = wksTarget.Range("a24")
'clear any old data on summary sheet
Set rngTarget = rngID.SpecialCells(xlCellTypeLastCell)
If rngTarget.Row > rngID.Row Then
wksTarget.Range(rngID.Offset(1), rngTarget).EntireRow.ClearContents
End If
'matching rows will get copied to summary sheet starting row 3
Set rngTarget = rngID.Offset(25)
'find matching rows on address sheet starting row 2
Set rngSource = wksSource.Range("a9")
iD = rngID.Value
Do Until (rngSource.Value = "")
If rngSource.Value = iD Then
Application.CutCopyMode = True
rngSource.EntireRow.Copy
wksTarget.Paste rngTarget
Application.CutCopyMode = False
Set rngTarget = rngTarget.Offset(1)
End If
Set rngSource = rngSource.Offset(1)
Loop
End Sub

Reply to Su