I have the following code:
cells[“A2”].Formula = “=HYPERLINK(H2,‘Edit’)”;
PasteOptions options = new PasteOptions();
options.PasteType = PasteType.Formulas;
Range range = cells.CreateRange(1,0,1,1);
Range hyperlinkrange = cells.CreateRange(2, 0, DT.Rows.Count, 1);
hyperlinkrange.CopyData(range);
I don’t want to iterate through each row to copy the cell. I could do that with the worksheet.hyperlink function. The number of rows can range between 1 to 30,000.