Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
Option Explicit
Sub Main
'x Milonico Aggiornatore Archivio
'Esempio: 7095;06/05/2025;Bari;6;44;88;74;39
'Script By Joe
Dim Ini,Offset,Es,R,S,P,Sep,Out
Ini = DataEstrToIdEstr(06,05,2025)
Sep = ";"
Offset = 7095 - Ini
For Es = Ini To EstrazioneFin
For S = 1 To 11
R = S
If S = 9 Then R = 12
If S > 9 Then R = S - 1
Out = Es + Offset & Sep & DataEstrazione(Es,,,"/")
Out = Out & Sep & NomeRuota(R)
For P = 1 To 5
Out = Out & Sep & Estratto(Es,R,P)
Next
Scrivi Out
Next
Next
End Sub
[/code ]
:)
Questo andava bene col primo esempio e in effetti è buono....poi però ha chiesto un'altra modifica. Il problema che ho riscontrato è figurare l'anno in due cifre. Se noti nell'ultimo post ho inserito dopo fatica a capire quello che poteva andare bene per il momento.Prova questo:
Codice:Option Explicit Sub Main 'x Milonico Aggiornatore Archivio 'Esempio: 7095;06/05/2025;Bari;6;44;88;74;39 'Script By Joe Dim Ini,Offset,Es,R,S,P,Sep,Out Ini = DataEstrToIdEstr(06,05,2025) Sep = ";" Offset = 7095 - Ini For Es = Ini To EstrazioneFin For S = 1 To 11 R = S If S = 9 Then R = 12 If S > 9 Then R = S - 1 Out = Es + Offset & Sep & DataEstrazione(Es,,,"/") Out = Out & Sep & NomeRuota(R) For P = 1 To 5 Out = Out & Sep & Estratto(Es,R,P) Next Scrivi Out Next Next End Sub [/code ] :)
Option Explicit
Sub Main
'x Milonico Aggiornatore Archivio
'Esempio: 365580697558168805516575746519474287892232262713155623248762412876203362358023841585783418416205848331467269255464240425
'Script By Joe
Dim Ini,Offset,Es,R,P,Sep,Out
Ini = DataEstrToIdEstr(24,04,2025)
Sep = ""
Offset = 3655 - Ini
For Es = Ini To EstrazioneFin
Out = Es + Offset
For R = 1 To 12 : If R = 11 Then R = 12
For P = 1 To 5
Out = Out & Sep & Format2(Estratto(Es,R,P))
Next
Next
Out = Out & Sep & Format2(giorno(Es))
Out = Out & Sep & Format2(Mese(Es))
Out = Out & Sep & Right(Anno(Es),2)
Scrivi Out
Next
End Sub