VBScript for Pivot Table to repeat

RPYee

New Member
Joined
Mar 13, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a vbscript that runs in Power Automate to create a pivot table in an Excel file. The only step I cannot replicate is to "Repeat Item Labels" in the field settings. When I recorded the step in Excel, the result says "This action is not yet recordable".

If I run the script while in Excel, it works fine. The row labels are repeated in the pivot table.
When I call the script from Power Automate, the script runs and the output file is sent as an email attachment.
When I open the attachment, the row labels are not repeated.

Does anyone know how to work around this problem? I really need the labels to be repeated in the pivot table.
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top