Insert DataTable from Excel To a Specific Line in Word document

Dears,

Could you please help to Insert DataTable from Excel To a Specific Line in Word document.
I have followed : Copy a excel cell range to word by Palaniyappan , I got the following error :
Insert DataTable: The number must be between 1 and 32767.

Hello @hsendel

This error is coming because the numeric variable type cannot hold the number you assigned to it as it is larger than the maximum number possible which is 32767. Most probably he has used Int32. Cannot check the xaml az Iā€™m out to get some stuff. So change the data type to int64 or even double if needed.

It should work for you

1 Like