[Help] How To? Excel Script: Rename all Sheets - Remove suffix

pg2020

New Member
Joined
Oct 25, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, everyone,

I hope I'm right here :)

I've been working with Power Automate for 2 weeks.
Goal: Combine multiple CSV files in one Excel file in different worksheets.
Convert CSV files to Excel workbooks - Office Scripts
Combine workbooks into a single workbook - Office Scripts

Unfortunately, the worksheets now have all file extensions as names.
Example: Name.csv.xslx.Sheet1 , Name2.csv.xlsx.Sheet1
Etc.

How can I remove the file extensions in all worksheet Names?
The following must be removed: .csv.xlsx.Sheet1
This is the same for all worksheets.

Unfortunately, I haven't found any other solution to combine individual csv files in an Excel file than this solution from Microsoft.

Thanks in advance and looking forward to a solution :)
Best Regards
Patrick
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I´m really sorry, i dont find a Edit Button.
The Scipt should be Office Script :)
The flow runs completly in the cloud.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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