Je ne comprends plus là... et il faut recommencer
Pour les majuscules, il vous suffit de modifier votre formule en colonne A
D'ailleurs est-ce possible de supprimer la feuille une fois l'extraction terminée ?
1. Le code à changer dans votre USF EXtract data
Private Sub CommandButton1_Click()
Dim cel As Range
Dim col As Integer, lig As Integer
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Name = "Extract"
With Sheets("Feuil1")
col = .Rows("7:7").Find(ComboBox.Value, LookIn:=xlValues, lookat:=xlWhole).Column
lig = 1
For Each cel In .Range("A8:A" & .Range("B" & Rows.Count).End(xlUp).Row)
If cel <> "" Then
Sheets("Extract").Range("A" & lig) = .Range("A" & cel.Row).Value
Sheets("Extract").Range("B" & lig) = .Cells(cel.Row, col).Value
lig = lig + 1
End If
Next cel
End With
Unload Me
End Sub
2. Le code de sauvegarde à changer dans le module
Sub Sauvegarde()
Dim chemin As String, fichier As String
chemin = ThisWorkbook.Path & "\"
fichier = "test.txt"
Sheets("Extract").Copy
ActiveWorkbook.SaveAs Filename:=chemin & fichier, FileFormat:=xlText, CreateBackup:=False
ActiveWorkbook.Close
Application.DisplayAlerts = False
ThisWorkbook.Sheets("Extract").Delete
Application.DisplayAlerts = True
End Sub