Search : in
By :

Copy row from one worksheet to another

Last answer on Aug 19, 2009 4:40:11 am BST PMYC, on Aug 11, 2009 6:07:24 pm BST 
 Report this message to moderators

Hello,
I have 11 worksheets in one workbook.
First sheet is "Master", Second is "New BB" ,Third is "New LB, Forth is Steelers and so on(football team names).
Then I enter on my "master" sheet, in col A "Id", col B "First Name, col C "Last Name" and so on(col N is the Team name)
Now how do I copy the row of info from "master sheet" to another sheet, if I entered Steelers as the team in col N and need that row of info on sheet named Steelers?
Now on the next row I enter nothing in the team and need that on the "New BB" sheet?

Please Help!
Thank you
PMYC

Configuration: Windows XP Internet Explorer 7.0

Best answers for « copy row from one worksheet to another » in :
[Command Prompt]Empty spaces not supported Show[Command Prompt]Empty spaces not supported Issue Solution Issue You want to make a command that targets a specified path, but it includes a space on a file. Example: You want to make a copy from one directory to another:...
Excel – Macro to detect and hide blank rows ShowExcel – Macro to detect and hide blank rows Issue Solution Note Issue I want a macro to unhide about 20 blank rows copy values into the top row then hide the remaining rows (some cells have fill though) then the next time it will...
Excel – Macro for copy & paste selected range ShowExcel – Macro for copy & paste selected range Issue Solution Note Issue I have a summary of data by month in one sheet and the raw data in another sheet. Instead of creating multiple worksheets for my raw data for each month, I want...
Download DVD decrypter ShowIn France, it is legal to have a backup copy of one’s video supports for a private use. DVDDecrypter allows to rip (to extract) encrypted DVD on the hard disk in order to exploit its contents. This software allows to rip each track or extract an ISO...
Download Codec pack all in one ShowCodec Pack All-In-One is a codec collection allowing to read films in DivX format and the similar formats (DivX, XviD, AC3, etc.). Codec Pack All in 1 6.0.3.0 contains: · DivX 6.1.1 · XviD Codec 1.1 · DivX, XviD - FFDShow 17.02.2005 Alpha...

1

kaiyasit, on Aug 12, 2009 11:12:04 am BST

First question, you can use VLOOKUP()
Second question, i don't understand.

Reply to kaiyasit

2

PMYC, on Aug 12, 2009 7:24:05 pm BST

Sorry
This is all in one workbook. I have in my "master" worksheet. First row Column head names:
Id First Name Last Name Address City State Zip Phone Age Birthday

L/B Returnee Parent Name School Team Weight E-mail .

ok now I type all your info including the team you were on last year, say the Steelers. I need to have that line copied to another worksheet (same workbook) named "Steelers" next empty row in that worksheet or if I typed nothing for team, I would need to copy that row to a worksheet name "New" or "New Player" to the next empty row on that worksheet. But can it be done automatically?

Thank you this is for a non profit org.
www.pmycsports.com
PMYC

Reply to PMYC

3

 kaiyasit, on Aug 19, 2009 4:40:11 am BST

Sorry......i'm very late...
Try to use below code....it may be help you

Sub TEST()
Dim Team As String
Dim Match As Boolean

Team = Sheets("Master").Range("N2")
Match = False
For Each b In Worksheets
If UCase(b.Name) = UCase("master") Then GoTo g
If UCase(Team) = UCase(b.Name) Then
Match = True
Call Copy1(b.Name)
Else
Match = False
End If
Debug.Print b.Name
g:
Next b


End Sub


Private Sub Copy1(ByVal SName As String)

Dim i As Integer
i = 2
Do Until Sheets(SName).Cells(i, 1) = "" Or Sheets(SName).Cells(i, 1) = Null
i = i + 1
Loop

Worksheets("Master").Range("A2:P2").Copy Destination:=Worksheets(SName).Range("A" & i)


End Sub

Reply to kaiyasit