[Power Automate Desktop] Without using a loop, how can I fill a range of cells in excel with one particular value?
Solved! Go to Solution.
Hi @reginaldbal
This sequence is not beautiful by any means but it works.
Suppose you want to fill A1 to A6 with value A:
1. 'Launch Excel' with a blank sheet
2. 'Write to Excel worksheet' write in A1 (row=1, column=1) the value A
3. 'Copy cells from Excel worksheet' copy cell A1 (row=1, column=1)
4. 'Select cells in Excel worksheet': select the remaining range you want to fill. In our example it's A2 to A6 (row=2, column=1 to row=6, column=1)
5. 'Focus window', class= XLMAIN (in order to use send keys properly)
6. 'Send keys' {LControlKey}({V}) (this sends Ctrl+V)
Hi @reginaldbal
This sequence is not beautiful by any means but it works.
Suppose you want to fill A1 to A6 with value A:
1. 'Launch Excel' with a blank sheet
2. 'Write to Excel worksheet' write in A1 (row=1, column=1) the value A
3. 'Copy cells from Excel worksheet' copy cell A1 (row=1, column=1)
4. 'Select cells in Excel worksheet': select the remaining range you want to fill. In our example it's A2 to A6 (row=2, column=1 to row=6, column=1)
5. 'Focus window', class= XLMAIN (in order to use send keys properly)
6. 'Send keys' {LControlKey}({V}) (this sends Ctrl+V)
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.