re a tous,
bon probleme resolu, cf fichier joint
mais maintenant je n'arrive pas a envoyer mes information dans mon activesheet a un endroit specifique...
je bloque au niveau de mon "derlig" et de l'inscription dans les colonnes...
Private Sub Validation_Click()
Dim L As Integer
Dim codeclient As String
Dim derlig As Integer
codeclient = Me.Frame1.Caption
If MsgBox("Confirmez-vous l'ajout de ce contrat ?", vbYesNo, "Demande de confirmation d'ajout") = vbYes Then
With Sheets("Clients")
.Unprotect
With Sheets("Clients").ListObjects("Tab_FichClients").ListColumns(1).DataBodyRange
L = .Find(codeclient, LookIn:=xlValues, lookat:=xlWhole).Row - 1
.Item(L, 25) = Format(CDate(Inscript.Value), "dd/mm/yyyy")
.Item(L, 26) = Application.Proper(Objectif.Value)
.Item(L, 27) = Format(Temps.Value, "0 00#")
.Item(L, 28) = Format(CDate(Final.Value), "dd/mm/yyyy")
.Item(L, 29) = NbSeances.Value
End With
.Protect
End With
With ActiveSheet
derlig = ActiveSheet.Range("B:B").Find("Coaching", LookIn:=xlValues, lookat:=xlWhole).Row + 2
End With
End If
Unload Me
End Sub
dans mon exemple, le "pack Coaching" se trouve ligne 11, mais dans mes fiches clients classique, celui ci peut se trouver a n'importe quelle ligne... d'ou ma recherche du terme "Coaching" dans la colonne B qui lui sera toujours dans cette colonne.
With ActiveSheet
derlig = ActiveSheet.Range("B:B").Find("Coaching", LookIn:=xlValues, lookat:=xlWhole).Row + 2
il faut que j'arrive a integrer les données de mon Usf dans le petit tableau en dessous (qui n'est pas un vrai tableau)
Si vous pouviez me guider
merci d'avance