cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
reginaldbal
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
yasunm02
Solution Sage
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)

View solution in original post

1 REPLY 1
yasunm02
Solution Sage
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)

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

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)