Moderatori: Anthony47, Flash30005
Sub Aggiorna()
Application.ScreenUpdating = False
Application.Calculation = xlManual
Dim Ws1, Ws2 As Worksheet
Dim UR1, Ur2, RR1, NB As Integer
Set Ws1 = Worksheets("Foglio1")
Set Ws2 = Worksheets("Riepilogo")
NB = 1
Ws1.Select
Range("A2").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
Sheets("Riepilogo").Select
UR1 = Ws1.Range("A" & Rows.Count).End(xlUp).Row
Ur2 = Ws2.Range("A" & Rows.Count).End(xlUp).Row
If Ur2 < 7 Then Ur2 = 7
Ws2.Range("A7:G" & Ur2).ClearContents
For RR1 = 2 To UR1
Ur2 = Ws2.Range("A" & Rows.Count).End(xlUp).Row + 1
Ws1.Range("A" & RR1 & ":A" & RR1).Copy
Ws2.Range("A" & Ur2).PasteSpecial Paste:=xlPasteValues
Ws2.Range("B" & Ur2).Value = NB
NB = NB + 1
Ws1.Range("B" & RR1 & ":D" & RR1).Copy
Ws2.Range("C" & Ur2).PasteSpecial Paste:=xlPasteValues
Ws1.Range("F" & RR1 & ":G" & RR1).Copy
Ws2.Range("F" & Ur2).PasteSpecial Paste:=xlPasteValues
Next RR1
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End SubTorna a Applicazioni Office Windows
| Ordina classifica prima positivi e poi negativi excel 2021 Autore: Cedamido1 |
Forum: Applicazioni Office Windows Risposte: 2 |
| Perché è diventato difficile seguire l'attività degli amici Autore: Ciao3 |
Forum: Forum off-topic Risposte: 4 |
| Salvare file su cartella sul desktop che è un collegamento Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 4 |
| How to Fix Excel Freezing When Opening Large Files on Window Autore: olalaleon |
Forum: Applicazioni Office Windows Risposte: 2 |
Visitano il forum: Nessuno e 22 ospiti