Simplify CSV header export

This commit is contained in:
updsv7
2026-04-13 14:33:10 +09:00
parent fddfd9e263
commit 5440b5b94f

View File

@@ -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