rebonjour
merci banzai64 pour les explications.
peux t'on le faire avec les feuille cachées
merci
-- 21 Août 2011, 20:41 --
bonsoir
suite a ma demande ,j'ai trouver une solution qui me semble tiré par les cheveux mais qui fonctionne.
Private Sub CommandButton2_Click()
Dim I As Integer
Dim WbkA As Workbook
Dim WbkB As Workbook
Dim a As Integer
With ListBox1
For a = 0 To .ListCount - 1
If .Selected(a) Then
Me.Hide
With Worksheets(.List(a))
.Visible = True
Application.ScreenUpdating = False
Set WbkA = ThisWorkbook
With ListBox1
Me.Hide
For I = 0 To .ListCount - 1
If .Selected(I) Then
If WbkB Is Nothing Then
WbkA.Sheets(.List(I)).Copy
ActiveSheet.Columns("H:IV").Delete
Set WbkB = ActiveWorkbook
Else
WbkA.Sheets(.List(I)).Copy after:=WbkB.Sheets(WbkB.Sheets.Count)
ActiveSheet.Columns("H:IV").Delete
End If
End If
Next I
End With
.Visible = False
End With
End If
Next
End With
Application.Dialogs(xlDialogSaveAs).Show
Unload Me
End Sub
si quelqu'un peu me dire si cela est correct ou si il y a plus simple
merci