13-06-22 04:34 PM
13-06-22 05:17 PM
Hi Vinod,
You can write your insert query as shown below:INSERT INTO [Sheet1$A5:B] VALUES('" & [Data1] & "','" & [Data2])"
Here, my sheet name is 'Sheet1' and my header starts from cell A5 and ends at column B. The data items Data1 and Data2 comprise of the value which I need to insert in the new record.
When you execute this query basically, new data values will be written under cell A6 and B6.
------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future
Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
WonderBotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
14-06-22 11:11 AM
14-06-22 11:37 AM
14-06-22 11:48 AM
"INSERT INTO [<SHEET_NAME>$] VALUES(<VALUE_LIST>)"
Then you iterate within your collection to prepare the list of data items which you can use to replace the <VALUE_LIST> keyword and store it in a temporary text data item and call the insert query again.14-06-22 12:13 PM
"INSERT INTO [" & [Excel Sheet Name] & "$A5:K] VALUES('" & [Data1] & "','" & [Data2] & "','','','','','','','','','')"
15-06-22 12:57 PM
15-06-22 04:05 PM
Provider=Microsoft.ACE.OLEDB.12.0;Data Source={DATA_SOURCE};Extended Properties="Excel 12.0;HDR=YES;"
17-08-22 03:43 AM
17-08-22 05:59 AM
INSERT INTO [Sheet2$] VALUES('val1', 'val2')
, ('val3', 'val4')
, ('val5', 'val6')