cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MEHRAB
Level: Powered On

How to copy and paste into a new line in excel that is saved in onedrive

I am trying to create a button that once clicked, will copy a record in the excel database and then create a new record in the same excel file.

  to put it in excel terms, copy a line and then paste the same line right below it in the record.

2 REPLIES 2
hpkeong
Level 10

Re: How to copy and paste into a new line in excel that is saved in onedrive

Hi

 

Are you saying that;

- move one row down and add a new record?

 

In Powerapps, Button.OnSelect

- Patch(TableName, Defaults (TableName), {FieldTitle1: TextInput1.Text, FieldTitle2: TextInput2.Text,...})

will generated a NEW RECORDS.

Default is used to generate new records.

 

TQ

 

hpkeong
Community Support Team
Community Support Team

Re: How to copy and paste into a new line in excel that is saved in onedrive

Hi @MEHRAB,

 

Could you please explain a bit for the following:

"will copy a record in the excel database and then create a new record in the same excel file."?

If here you are using Gallery to display the whole records of the Excel file, and create a new record for the record selected, then we could take use of the patch function as below:

Patch(Table, defaults(Table), Gallery.Selected)

It will create a new line at the bottom of the table.

 

There is no way that I know to add it just below the record copied.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,285)