By: Shamima Sultana

In reply to jim.

Hello Jim,

Thank you for your observation. The delimiter variable was declared but not used to split columns in the VBA code. To achieve this, we need to use Workbooks.OpenText instead of Workbooks.Open, and specify the delimiter.

Here’s the updated part of the code:
Workbooks.OpenText Filename:=openFiles(I), DataType:=xlDelimited, Semicolon:=True

This ensures the CSV values are properly split into columns. If you’d like a more detailed explanation or further guidance, feel free to ask.

Best regards,
ExcelDemy