Hello.
I have a .xlsm file wich I get from a web page. This file is an exported database, and it has numeric data written as text, numeric information that can't be used in formulas because excel thinks it is a text.
Which would be the most efficient way to convert the column data type from text to number?
Right now I have been only capabe of doing it with a for loop, but this files can have up to10.000registers.
for (int i = 2; i <= 10002; i++)
{
sheet.Range["A"+i.ToString()].Number = sheet.Range["A" + i.ToString()].Text;
}
I also tryed with numberformat porperty, but it doesn't seem to be related
sheet.Range["A2:A10002"].NumberFormat = "#";
Thank you in advance.