diff --git a/vba_code_kukan_detail_master.txt b/vba_code_kukan_detail_master.txt index c39fc75..3c49152 100644 --- a/vba_code_kukan_detail_master.txt +++ b/vba_code_kukan_detail_master.txt @@ -393,7 +393,7 @@ Sub ExportMasterDetailData() ' Data: C,G,H,I,J,K,L,M,N,O,P (skip D,E,F) Dim r As Long For r = 7 To lastDataRow - If Trim(ws.Cells(r, 3).Value) <> "" Then + If Len(Trim(ws.Cells(r, 3).Value & "")) > 0 Then ' CSV col1 -> C column csvContent = csvContent & CleanCSVField(ws.Cells(r, 3).Value) ' CSV col2-11 -> G-P column