Simplify CSV header export
This commit is contained in:
@@ -387,18 +387,8 @@ Sub ExportMasterDetailData()
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
' Use constant for header
|
' Use constant for header
|
||||||
Dim headerList As Variant
|
|
||||||
headerList = Split(CSV_HEADER, ",")
|
|
||||||
|
|
||||||
' Build CSV
|
|
||||||
Dim csvContent As String
|
Dim csvContent As String
|
||||||
Dim j As Long
|
csvContent = CSV_HEADER & vbCrLf
|
||||||
|
|
||||||
For j = 0 To UBound(headerList)
|
|
||||||
If j > 0 Then csvContent = csvContent & ","
|
|
||||||
csvContent = csvContent & headerList(j)
|
|
||||||
Next j
|
|
||||||
csvContent = csvContent & vbCrLf
|
|
||||||
|
|
||||||
' Data: C,G,H,I,J,K,L,M,N,O,P (skip D,E,F)
|
' Data: C,G,H,I,J,K,L,M,N,O,P (skip D,E,F)
|
||||||
Dim r As Long
|
Dim r As Long
|
||||||
|
|||||||
Reference in New Issue
Block a user