Moderatori: Anthony47, Flash30005
Sub TrascTab()
Dim FC As Worksheet
Dim FH As Worksheet
Dim FA As Worksheet
Set FC = Worksheets("classifiche")
Set FH = Worksheets("home")
Set FA = Worksheets("away")
FH.Cells.Clear
FA.Cells.Clear
Application.ScreenUpdating = False
Application.Calculation = xlManual
URC = FC.Range("A" & Rows.Count).End(xlUp).Row
WS = ""
RigaI = 0
RigaF = 0
For RRC = 1 To URC
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "HOME" Then
Set WS = FH
RigaI = RRC
Else
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "AWAY" Then
Set WS = FA
RigaI = RRC
End If
End If
If RigaI > 0 Then
If UCase(Left(Trim(FC.Range("A" & RRC).Value), 6)) = "LEAGUE" Then
RigaF = RRC
URW = WS.Range("A" & Rows.Count).End(xlUp).Row + 1
FC.Range("A" & RigaI & ":I" & RigaF).Copy Destination:=WS.Range("A" & URW)
RRC = RigaF
End If
End If
Next RRC
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
RRC = RigaF '<<<<<<<<<<<<<<< esistente
RigaI = 0 '<<<<<<<<<<<<<<< <<<< aggiungere
End If '<<<<<<<<<<<<<<< esistente
Sub TrascTab()
Dim FC As Worksheet
Dim FT As Worksheet
Dim FH As Worksheet
Dim FA As Worksheet
Set FC = Worksheets("classifiche")
Set FT = Worksheets("totale")
Set FH = Worksheets("home")
Set FA = Worksheets("away")
FT.Cells.Clear
FH.Cells.Clear
FA.Cells.Clear
Application.ScreenUpdating = False
Application.Calculation = xlManual
URC = FC.Range("A" & Rows.Count).End(xlUp).Row
WS = ""
RigaI = 0
RigaF = 0
For RRC = 1 To URC
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "MATCHES" Then
Set WS = FT
RigaI = RRC
Else
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "HOME" Then
Set WS = FH
RigaI = RRC
Else
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "AWAY" Then
Set WS = FA
RigaI = RRC
End If
End If
If RigaI > 0 Then
If UCase(Left(Trim(FC.Range("A" & RRC).Value), 6)) = "LEAGUE" Then
RigaF = RRC
URW = WS.Range("A" & Rows.Count).End(xlUp).Row + 1
FC.Range("A" & RigaI & ":I" & RigaF).Copy Destination:=WS.Range("A" & URW)
RRC = RigaF
RigaI = 0
End If
End If
End If
Next RRC
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Sub TrascTab()
Dim FC As Worksheet
Dim FH As Worksheet
Dim FA As Worksheet
Dim FT As Worksheet
Set FC = Worksheets("classifiche")
Set FH = Worksheets("home")
Set FA = Worksheets("away")
Set FT = Worksheets("totale")
FH.Cells.Clear
FA.Cells.Clear
FT.Cells.Clear
Application.ScreenUpdating = False
Application.Calculation = xlManual
URC = FC.Range("A" & Rows.Count).End(xlUp).Row
ws = ""
RigaI = 0
RigaF = 0
For RRC = 1 To URC
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "HOME" Then
Set ws = FH
RigaI = RRC
Else
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "AWAY" Then
Set ws = FA
RigaI = RRC
Else
If UCase(Left(FC.Range("A" & RRC).Value, 4)) = "MATC" Then
Set ws = FT
RigaI = RRC
End If
End If
End If
If RigaI > 0 Then
If UCase(Left(Trim(FC.Range("A" & RRC).Value), 6)) = "LEAGUE" Then
RigaF = RRC
URW = ws.Range("A" & Rows.Count).End(xlUp).Row + 1
FC.Range("A" & RigaI & ":I" & RigaF).Copy Destination:=ws.Range("A" & URW)
RRC = RigaF
RigaI = 0
End If
End If
Next RRC
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Torna a Applicazioni Office Windows
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: 5 |
confrontare e evidenziare 2 fogli excel Autore: niccia |
Forum: Applicazioni Office Windows Risposte: 7 |
[EXCEL] controllo corrispondenza tra valori con un vincolo Autore: sbs |
Forum: Applicazioni Office Windows Risposte: 9 |
Visitano il forum: Nessuno e 5 ospiti