I have an excel and some headers are more than 1 line(i.e in next line).
For example the Header/Column name is like Common
Name
How to read those columns using Data table as these are not in 1 line.
Hi,
In this case, we need to join these names (header and item of the first row) and remove it (the first row). The following sample will help you.
Regards,
Hi, May be I didn’t explained it properly in the question…headers contains new line in the same cell. Attached the example
Hi,
Can you try as the following? Either one will work.
row("Column"+vbCrLF+"Name")
OR
row("Column"+vbLf+"Name")
If linebreak exists at the end of the column name, please add vbCrlf or vbLf as same.
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.