
Moderatori: Anthony47, Flash30005
Sub collaxEO()
CelleFree = "J1" '<< Colonna in cui sara' scritto il report
TuArea = "B1:F300" '<< Area con i dati
'
Compen = Range(TuArea).Column: MaxR = 0
Application.ScreenUpdating = False
For Each Cella In Range(TuArea)
Set CFormArea = Range(TuArea).Offset(Cella.Row).Resize(Range(TuArea).Rows.Count - Cella.Row + 1)
If Int(Cella / 2) = Cella / 2 Then OddFl = 0 Else OddFl = 1
If Application.WorksheetFunction.CountIf(CFormArea, Cella.Value) = 0 Then
Range(CelleFree).Offset(Rows.Count - 1, Cella.Column - Compen + 6 * OddFl).End(xlUp).Offset(1, 0) = Cella.Value
If Range(CelleFree).Offset(Rows.Count - 1, Cella.Column - Compen + 6 * OddFl).End(xlUp).Offset(1, 0).Row > MaxR Then _
MaxR = Range(CelleFree).Offset(Rows.Count - 1, Cella.Column - Compen + 6 * OddFl).End(xlUp).Offset(1, 0).Row
End If
Next Cella
For Each Cella In Range(CelleFree).Resize(1, Range(TuArea).Columns.Count * 2 + 1)
Range(Cella, Cells(Rows.Count, Cella.Column).End(xlUp)).Select
Selection.Cut Destination:=Cella.Offset(MaxR - Selection.Rows.Count, 0)
Next Cella
Range(CelleFree).Select: Application.ScreenUpdating = False
End Sub
Torna a Applicazioni Office Windows
| Excel apre solo una schermata bianca Autore: jameswilson |
Forum: Applicazioni Office Windows Risposte: 1 |
| Inserire dati filtrati da 2 file ad un terzo file Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 14 |
| Inserire add.in nella barra di avvio veloce in excel 2003 Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 4 |
| Excel: problema con date se devo unirle a testi Autore: valle1975 |
Forum: Applicazioni Office Windows Risposte: 7 |
Visitano il forum: Nessuno e 18 ospiti