Hello
I'm sorry but I don't speak english very well
I want you to help me to complete a code
http://img95.echo.cx/img95/6123/sanstitre5yr.jpg
I have this code :
This code take automatically all the lines of the sheet and create a new sheet by user (utilisateur)Code:Sub Extract()
Dim bSheetExists As Boolean
Dim iNextRow As Long
Dim rActivity As Range
Dim rHeading As Range
Dim vI As Variant
Dim vJ As Variant
Sheets("Data").Activate
Set rActivity = Range([A2], [A2].End(xlDown))
Set rHeading = Rows(1)
For Each vI In rActivity
bSheetExists = False
For Each vJ In Worksheets
If vJ.Name = vI.Cells(1, 6) Then
bSheetExists = True
Exit For
End If
Next vJ
If bSheetExists Then
vJ.Activate
Else
Worksheets.Add After:=Worksheets(Worksheets.Count)
ActiveSheet.Name = vI.Cells(1, 6)
rHeading.Copy ([A1])
End If
iNextRow = [A1].SpecialCells(xlLastCell).Row + 1
vI.EntireRow.Copy (Cells(iNextRow, 1))
Next vI
End Sub
But I want it to create a new sheet only for a specified user that I give in a msg box
I hope you'll understand me
Thank you for your help