Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Copy entire row from one tab into another

celnow, on Monday 8 September 2008 à 18:10:15
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
Reply to celnow  Report this message to moderators Go to last message

1


  • 1
    This message seems useful, vote!
  • Ce message ne vous semble pas utile, votez !
  • Report this message to moderators
Ivan-hoe, on Tuesday 9 September 2008 à 07:35:47
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


  • This message seems useful, vote!
  • Report this message to moderators
JxCore, on Thursday 16 October 2008 à 14:45:09
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


  • This message seems useful, vote!
  • Report this message to moderators
 Su, on Monday 3 November 2008 à 19:35:31
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

Résultats pour copy entire row from one tab into another

Move Data From One Tab To Another Hello, I am not familiar with how to write macros so I am hoping someone can help me. I have data on one tab in numerous columns, the number of rows will vary. Each row of data on this tab will be categorized into Class A and Class B based on the... en.kioskea.net/forum/affich-25735-move-data-from-one-tab-to-another
MACRO to copy rows based on critera Hello, I need to create a Macro in Excel 2003 that will search four worksheets (within the same workbook) for the word "Failed" and then copy the entire row that word exists in to another worksheet (within the same workbook). I need the formatting in... en.kioskea.net/forum/affich-30369-macro-to-copy-rows-based-on-critera
Macro to populate worksheet tabs (Solved) Hello, Can somebody post the code necessary to copy a template tab into X new sheets, and renaming each sheet Test 1, Test 2, to Test X ? Thanks! en.kioskea.net/forum/affich-4266-macro-to-populate-worksheet-tabs

Résultats pour copy entire row from one tab into another

Compare cell a1 to entire A col in sheet2 (Solved)Hello, I have been trying to compare sheet1 A2 to sheet2 A2 through A500 and if it exists somewhere in sheet2's a col then copy that entire row to a new sheet. I have experimented with many bits of macro code from others but so far no real... en.kioskea.net/forum/affich-21245-compare-cell-a1-to-entire-a-col-in-sheet2
Conditional Format ProblemHello, I want to use Excel Conditional Format to change color of an entire row whenever there is a "cancel" placed in any of the cells in that row. All other information involves taking a value from a column entry, and not a row entry. We have daily... en.kioskea.net/forum/affich-10118-conditional-format-problem
Copy rows based on a conditionHi 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 nothing is working. Please help! en.kioskea.net/forum/affich-30153-copy-rows-based-on-a-condition

Résultats pour copy entire row from one tab into another

Download DVDFab HD decrypterDVD Fab HD Decrypter is a simplified version of DVD Fab Platinium. Very practical to copy entirety a DVD on the hard drive - and thus to remove protections - before modifying it with DVDShrink for example. Little DVD resists to him! It is legal to... en.kioskea.net/telecharger/telecharger-1140-dvdfab-hd-decrypter
Download Total CopyThe transfer of documents, file or others from directory to other one is very common when they work on computer. Disadvantage with the administrator of file by default installed under Windows, it is that they cannot make a pause or cross a copy in... en.kioskea.net/telecharger/telecharger-254-total-copy

Résultats pour copy entire row from one tab into another

HTML - Tables Often, it is helpful to present information in a more structured manner than a list. Tables can display this information in rows and columns. The tables are defined as series of rows. A table must follow the rules below: The table is enclosed within... en.kioskea.net/html/htmltable.php3
Linux - Commands Command Description DOS equivalent ls lists the content of a directory dir cd change of directory cd cd .. parent directory cd.. mkdir creates a new directory md rmdir eliminates a directory deltree cp copy of a file copy, xcopy mv moves a file move... en.kioskea.net/linux/lincomm.php3
Network equipment - Router A router is a device for connecting computer networks to one another, used for handling the routing of packets between two networks, or to determine the path that a data packet shall take. When a user enters a URL, the Web client (the browser)... en.kioskea.net/lan/routeurs.php3