Hi,
I need to open up a csv into excel using vb.net. I am using the below code to achieve that.
xlsApp = New Excel.ApplicationClass
xlsApp.Visible = True
xlsWB = xlsApp.Workbooks.Open("C:\test1.xls")
But my problem is when opened in excel, leading zeroes are truncated in the cells.
for example 002 is showing up as 2
Can anybody help me on this please.
Is there any other way to open csv file in excel without truncating leading zeros?
Thanks in advance.
I need to open up a csv into excel using vb.net. I am using the below code to achieve that.
xlsApp = New Excel.ApplicationClass
xlsApp.Visible = True
xlsWB = xlsApp.Workbooks.Open("C:\test1.xls")
But my problem is when opened in excel, leading zeroes are truncated in the cells.
for example 002 is showing up as 2
Can anybody help me on this please.
Is there any other way to open csv file in excel without truncating leading zeros?
Thanks in advance.