1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| Private sub Listbox2_click()
Dim numlign
With Workbooks("PLAN")
.Activate
ActiveWindow.WindowState = xlMinimized
End With
With Workbooks("PROFIL")
.Activate
ActiveWindow.WindowState = xlMaximized
Application.Run ("'PLAN.xlsm'!OuvreUF1")
Columns("r:r").Select
numlign = Selection.Find(What:=numlign, After:=ActiveCell, LookIn:=xlFormulas, lookat _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).EntireRow.Select
End With
Textbox1 = ActiveCell.Offset(0, 3).Value
Textbox2 = ActiveCell.Offset(0, 14).Value
Textbox3 = ActiveCell.Offset(0, 1).Value
end sub |
Partager