Example 1: Copy the values in a particular column in an
excel sheet to another sheet.
- Open the Task Editor from Tools -> Task Editor
- Double click on the 'Open Spreadsheet' command.
- Specify the session name lets say copy cells.
- Click on (...) button and select the excel spreadsheet from where you want
to copy.
- Click 'Save' button.
- Double click on the 'Open Spreadsheet' command.
- Specify the session name lets say paste cells
- Click on (...) button and select the excel spreadsheet where you want to
paste.
- Click 'Save' button.
- Double click on 'Get Cells' command.
- Specify the session name i.e. copy cells.
- Select 'Get Multiple Cells' and insert the range i.e. if your range
is from cell C6 to C18, insert C6 in 'From Specific Cell' and C18 in 'To
Specific Cell'.
- Start a Loop for 'Each row in an Excel Dataset' and set the session name
as copy cells.
- Double click on 'Set Cells' command.
- Set the session name as 'paste cells'.
- In the cell value, Select the variable Excel Column and select the column
no. as 1 as you are retriving values for one column.
- Click 'Save' button.
- Double click on 'Go to Cells' command.
- Set the session name as 'paste cells'.
- Select 'one cell below'.
- Click 'Save' button.
Example 2: To copy from excel into notepad.
- Open the Task Editor from Tools -> Task Editor
- Double click on the 'Open Spreadsheet' command.
- Click on (...) button and select the excel spreadsheet from where you want
to copy.
- Click 'Save' button.
- Click on 'Get Cells'
- Select 'Get Multiple Cells' and insert the range i.e. if your range
is from cell C6 to C18, insert C6 in 'From Specific Cell' and C18 in 'To
Specific Cell'.
- Start a Loop for 'Each row in an Excel Dataset'.
- Make sure the notepad is open.
- Double click on 'Insert Keystrokes' command.
- Select the window title from the list for notepad.
- Select the variable Excel Column from the list on the
right and insert the column no. as 1 as you are retriving values for one
column.
- Insert a special ketstroke of [ENTER] after the
$ExcelColumn(1)$ variable.
- Click 'Save' button.
Example 3: To run an excel macro in an excel
spreadsheet.
- Open the Task Editor from Tools -> Task Editor
- Double click on the 'Open Spreadsheet' command.
- Click on (...) button and selct the excel spreadsheet
which contains the macro.
- Click 'Save' button.
- Double click on the 'Run Excel Macro' command.
- Enter the macro name e.g. Macro1.
- Click 'Save' button.
Example 4: To delete entire row in an excel spreadsheet
- Open the Task Editor from Tools -> Task Editor
- Double click on the 'Open Spreadsheet' command.
- Click on (...) button and select the excel spreadsheet.
- Click 'Save' button.
- Double click on the 'Delete Cells' command.
- Specify a cell in the row which you want to delete.
- Select 'Entire Row' from Delete options.
- Click 'Save' button.