Una famiglia di software per fogli di calcolo Microsoft con strumenti per l'analisi, la creazione di grafici e la comunicazione dei dati.
Io la vedrei così:
Dim intV As Integer, rngC As Range
With Worksheets("Foglio1")
.Range("A1:L1").Clear
intV = 1
For Each rngC In .Range("A2:Z1000")
If rngC.Value <> "" Then
rngC.Copy .Cells(1, intV)
intV = intV + 1
End If
Next rngC
With .Sort
.SetRange Range("A1:L1")
.Header = xlGuess
.MatchCase = False
.Orientation = xlLeftToRight
.SortMethod = xlPinYin
.Apply
End With
End With
End Sub
Ciao.