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