
Sub gnocchete_sgt()
Sheets("TRACK_SGT").Select
LR = Cells(Rows.Count, "A").End(xlUp).Row
sn = Range("AA2:AA" & LR)
For J = 1 To UBound(sn)
c00 = c00 & Join(Application.Index(sn, J, 0), ",") & ",SOGETRAS" & vbCrLf
Next
CreateObject("scripting.filesystemobject").createtextfile(ThisWorkbook.Path & "GNOCCHETEGNOCCHETE_SGT.csv").Write c00
Sheets("CARICO").Select
End Sub |
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
Sub gnocchete_sgt()
Sheets("TRACK_SGT").Select
LR = Cells(Rows.Count, "A").End(xlUp).Row
sn = Range("AA2:AA" & LR)
If LR > 2 Then
For J = 1 To UBound(sn)
c00 = c00 & Join(Application.Index(sn, J, 0), ",") & ",SOGETRAS" & vbCrLf
Next
Else
c00 = sn & ",SOGETRAS"
End If
CreateObject("scripting.filesystemobject").createtextfile(ThisWorkbook.Path & "GNOCCHETEGNOCCHETE_SGT.csv").Write c00
Sheets("CARICO").Select
End Sub |
Sub gnocchete_sgt()
Dim Lr As Long, J As Long
Dim C00 As String
With Sheets("TRACK_SGT")
Lr = .Cells(Rows.Count, "A").End(xlUp).Row
For J = 2 To Lr
C00 = C00 & .Cells(J, "AA") & ",SOGETRAS" & vbCrLf
Next
End With
CreateObject("scripting.filesystemobject").createtextfile(ThisWorkbook.Path & "GNOCCHETEGNOCCHETE_SGT.csv").Write C00
Sheets("CARICO").Select
End Sub
|
Sub gnocchete_sgt()
Dim Lr As Integer, J As Integer
Dim C00 As String
With Sheets("TRACK_SGT")
Lr = .Cells(Rows.Count, "A").End(xlUp).Row
For J = 2 To Lr
C00 = C00 & .Cells(J, "AA") & ",SOGETRAS" & vbCrLf
Next
End With
CreateObject("scripting.filesystemobject").createtextfile(ThisWorkbook.Path & "GNOCCHETEGNOCCHETE_SGT.csv").Write C00
Sheets("CARICO").Select
End Sub |
