Hi Team,
I have an input excel with multiple sheets.
i need to extract one of the excel sheet data into another new excel without using read and write range excel or workbook activities.
Do we have any other option?
Thanks
Likitha
Hi Team,
I have an input excel with multiple sheets.
i need to extract one of the excel sheet data into another new excel without using read and write range excel or workbook activities.
Do we have any other option?
Thanks
Likitha
I think its not possible without using read range and write range activities
if we found any it was nice to learn that!
thanks
Hello @vinjam_likitha
Initialize an Excel Application Scope to work with Excel files.
Use Excel VBA code to open the source Excel file and extract data from the specific sheet.
Create a new Excel file.
Copy the extracted data to the new Excel file.
Save and close both Excel files.
End the Excel Application Scope to release resources.
Thanks & Cheers!!!
Hi,
can’t we use LINQ queries?
Thanks
Likitha
hi @vinjam_likitha
Extract the data and write it into datatable using Build datatable and use the data table output variable for the further process.
It Helps!
LINQ queries is used for datatable which are applied after reading the excel files.
Hi, if you want to extract data from one sheet of an Excel file and write it to another Excel file without using the “Read Range” and “Write Range” activities, you can use the following steps:
Use the “Excel Application Scope” activity to open the source Excel file, which contains the sheet you want to extract data from.
Use the “Select Range” activity to select the entire sheet’s data you want to copy. This activity simulates selecting data using keyboard shortcuts, similar to pressing Ctrl+A.
Use the “Copy Selected Text” activity to copy the selected data to the clipboard.
Use the “Excel Application Scope” activity to open the target Excel file where you want to paste the data.
Use the “Send Hotkey” activity to activate the target Excel file and simulate the Ctrl+V (Paste) keyboard shortcut to paste the data from the clipboard into the target Excel file.
@vinjam_likitha
firstly we need to read the excel data ,all the data stored in a datatable-then we can you LinQ for that datatable…
without reading excel we cant use LinQ for excel files or excel sheets
After reading the excel the data is stored in datatable. how to apply linq queries on it
can you tell me the requirement for applying the linq
i need to read the one of the sheet excel data. and store it in datatable. then need to apply linq queries to copy to another new excel
@vinjam_likitha
are you perfoming any filteration or sorting in the DT to store into second excel sheet?
i planning to go with macro
Thanks all for the solutions