cancel
Showing results for
Did you mean:
Frequent Visitor

## How to fill a range of cells in excel at once with one particular value?

[Power Automate Desktop] Without using a loop, how can I fill a range of cells in excel with one particular value?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution Sage

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)

Solution Sage

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)

Announcements

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

#### Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

#### Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,265)