Range Error

Hi Team,
getting below error, what is the correction to be done
rngcell = C
rowIdx = 0

Hi @devasaiprasad_K

pass in the Writecell by adding .tostring at end

@devasaiprasad_K

or use as below

Excel.Sheet("Sheet1").Cell(rngcell.tostring+(rowIdx+2).ToString)

Hope it helps!!

1 Like

Hi @devasaiprasad_K

Try this:
Excel.Sheet("Sheet1").Cell(rngcell.ToString + (rowIdx+2).ToString)

You need to convert this double type(rowIdx+2) to string type for string concatination.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.