Re : VBA UserForm <==> UserForm
SALUT yusukens
moi j'ai fait une petite expérience avec le fichier que je t'es envoie et ca a marcher je t'envoie le code est essaye de le modifier a ton niveau car le principe est bon il faut pas le prendre de son intégralité il y'a les RGB les couleur t'a pas besoin le commandButton il faut le faire dans le 1 Userform :
Private Sub CommandButton12_Click()
UserForm2.Show
Dim L As Integer
Dim plage As String
SortNom
With UserForm2.TextBox12
.Value = UserForm1.TextBox3
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox13
.Value = UserForm1.TextBox2
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox14
.Value = UserForm1.TextBox1
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox15
UserForm2.TextBox15 = Format(Sheets("Database").Range("D" & NomLBindex), " 000,00")
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox16
UserForm2.TextBox16 = Format(Sheets("Database").Range("E" & NomLBindex), " 000,00")
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox17
UserForm2.TextBox17 = Format(Sheets("Database").Range("F" & NomLBindex), " 000,00")
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
With UserForm2.TextBox18
UserForm2.TextBox18 = Format(Sheets("Database").Range("G" & NomLBindex), " 000,00")
.Enabled = False
.BackColor = RGB(255, 200, 200)
End With
L = Sheets("Database").Range("A65536").End(xlUp).Row
plage = Sheets("Database").Range("A2:G" & L).Address
ListBox1.RowSource = "Database!" & plage
CommandButton3.Visible = False
CommandButton4.Visible = False
CommandButton5.Visible = False
CommandButton8.Visible = False
CommandButton9.Visible = False
UserForm2.CommandButton10.Visible = False
CommandButton11.Visible = False
TextBox6.Visible = False
Label4.Visible = False
ListBox2.Visible = False
Frame1.Visible = False
UserForm2.Caption = "FONDS D'ETAT => MONTAGE FINANCIERS"
End Sub